Hi Fabrice, hi Marco,
But I tested it again with 8.3, and did not succeed in sharing a server side mainmem db.
True! I have reintroduced that feature in the latest snapshot [1]. Spontaneously, I would say there’s currently no way to realize this for web applications. I could add the -c flag for BaseXHTTP as well. @Marco: Do you think this would be helpful?
Please note that it’s not possible to open existing databases in main memory [2]..
Christian
[1] http://files.basex.org/releases/latest [2] https://github.com/BaseXdb/basex/issues/948
On Mon, Nov 9, 2015 at 5:08 PM, Etanchaud Fabrice Fabrice.Etanchaud@horanet.com wrote:
Hi Marco,
I did a few tests in that configuration last year (not with 8.X version), And it worked, as long as I did not "OPEN" another database.
Server :
java -cp "%CP%" %BASEX_JVM% org.basex.BaseXServer %* -c"SET MAINMEM TRUE;CREATE DB mainmem"
Client :
xquery db:open('mainmem')
Stopped at ., 1/9: [bxerr:BXDB0002] Database 'mainmem' was not found.
Best regards, Fabrice
-----Message d'origine----- De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] De la part de Marco Lettere Envoyé : lundi 9 novembre 2015 16:29 À : BaseX basex-talk@mailman.uni-konstanz.de Objet : [basex-talk] Applicative Cache
Hi all, I went though the emails talking about mainmemory databases and related but I've not been able to find an answer to this loud thinking ... Would it be possible to create an in memory database with a RESTXQ call and keep it accessible for other RESTXQ invocations as if it was a disk db throughout the lifecycle of a basexhttp server? Application level cacheing of (possibly distributed) dbs or management of transient volatile data items like tokens are the scenarios I have in mind. Just wondering whether this makes any sense. Whether it's feasible or whether someone already did this with other means. Thanks a lot! Marco.