On 12/15/2015 03:54 PM, Dimitry Sibiryakov wrote: > 15.12.2015 13:47, Alex Peshkoff wrote: >> So you want to say that in case of CS there is no need in checking for >> DBO and therefore calling mapUser too early? Seems to be so. > And in the case of SS, if error "not enough rights" is thrown, then the > connection > failed, database is unloaded, cache setting are reset. So, no problem there > as well. >
That's not so simple on the one hand. When database is opened by SS and is ready for processing mapping request it can be used by another attachment - and it will be used with wrong cache settings, which may badly affect performance. But on the other hand with SS there are anyway no problems - mappings are read from database only once and kept in dedicated cache even when database is closed. Cache for some DB is reset only when mapping DDL is issued for that DB. ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel