On 12/15/2015 04:50 PM, Dimitry Sibiryakov wrote: > 15.12.2015 14:35, Alex Peshkoff wrote: >> 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. > What do you think about this: > > 1) For first attachment CCH is initialized with minimal size enough for > mapUser() to work. > 2) When all necessary checks were performed, CCH_expand() is called with > either default > size or provided in dpb. > > In this case in second and subsequent attachments mapUser() either works > with minimally > enough cache or already expanded. No performance penalty. > BTW, call to CCH_expand() is already there. >
I think that it's possible, but you are actively trying to optimize already optimized SS case. Single additional attachment once per server operation is not worth wasting time on it. ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel