Hi Asif, Thanks for your message.
Note, there are some things that you can do to improve your measured times. Most importantly, there are code generation flags that prevent the generation of things like the Tables.java class (which in turn initialises all the tables in one go). For example, you could use <globalObjectReferences>false</globalObjectReferences>. See also: https://www.jooq.org/doc/latest/manual/code-generation/codegen-globals https://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/codegen-config-generate/codegen-generate-globals I don't think that the initialisation of the tables itself is the actual problem, if you're not referencing the tables in any specific module of yours. The main problem for you is the fact that all tables are referenced from Tables.java - I think. There is already a feature request that asks for the same improvement as you suggested, but I cannot seem to find it. So I have created a fresh one: https://github.com/jOOQ/jOOQ/issues/7823 I hope this helps, Lukas On Mon, Aug 27, 2018 at 11:33 PM <[email protected]> wrote: > > Hi, > > I noticed that the tables and schema's generated were singletons, which is > great. But also noticed at the top of each of these classes that they were > initialized early: > > *public static final InvestorAllocation > HISTORICAL_INVESTOR_ALLOCATION = new InvestorAllocation();* > > Since I have 3500 tables and schemas generated the following change to > create them lazily create them would help a lot: > > * > https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom > <https://en.wikipedia.org/wiki/Initialization-on-demand_holder_idiom>* > > Could possibly I request that as a change in the next build? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "jOOQ User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
