Nuxeo CAP (5.8) SQL directories init mode : manually triggered instead of on server launch ?
I have some large directories for address fields suggestions and others.
The very first launch takes a really long time to initialize them.
I would be interested to be able to trigger this import manually instead of the automatic on-server-launch process.
Is this possible?
Especially, in development environment when reinstalling server can be a frequent operation. By “manually” I mean thru a code call that I can implement myself, that would be perfect. I didn't something like these on directories management classes.
You can have a look at SQLDirectory.initConnection() method that makes use of the SQLHelper to init the table. You should be able to create a SQLHelper by using the connection of the directory and its configuration