-
I've switched from sequential initialization of prepared statements on the connections to parallel initialization. That reduced startup time. I've also added code to reuse ForkJoinPool and keep it in memory for up tp 60s after the last prepared statement is initialized. That should allow it to be reused even if at some point we would decide to add new data sources at runtime (and it reduces load time as we do not need to created and destroy threads).
Type |
Task
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.1.0
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
If Tigase XMPP Server is being started with a lot of connections, it takes some time to connect and initialize prepared statements. It would be good to reduce startup time, ie. thanks to the parallel execution of that code.