transaction safe select for model