cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo CAP (5.8) SQL directories init mode : manually triggered instead of on server launch ?

promanov_
Star Contributor
Star Contributor

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.

2 REPLIES 2

Damien_Metzler
Star Contributor
Star Contributor

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

Thanks for the suggestion, it seems to be a good path. I'll post if it confirms working.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.