I am afraid that this would not work. If you do not create the mainmem database at server's initialization, but afterwards from a client, then the database lives as long as the client's connection. So using the client module in a RESTXQ request will not help, because connection is closed at the end of the request.
Currently, I use a basexclient for that, and keep the client console open, to prevent the mainmem db from closing.
Best regards, Fabrice
-----Message d'origine----- De : Christian Grün [mailto:christian.gruen@gmail.com] Envoyé : vendredi 20 novembre 2015 15:28 À : Marco Lettere marco.lettere@dedalus.eu Cc : Etanchaud Fabrice Fabrice.Etanchaud@horanet.com; basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] Applicative Cache
What about running from within a RESTXQ a client:connect/client:execute against the coupled db server that has been configured to startup like suggested by Fabrice (-c"SET MAINMEM TRUE;CREATE DB mainmem")?
…Marco’s approach ;) I agree, this would be possible! Looking forward to your experiences.
Christian