mainmem bug?
Wednesday, 4 June 2014 · 6 messages
M
Marc4 Jun 2014 10:21 #
Hi,
I try to use the mainmem flag because I use a temporally base to do some specific treatments and extract it after.
But when I create the database it isn't!
the easy script :
---------------------
set mainmem true
create db test
list
open test
-------------------
the result :
------------------
MAINMEM: true
Database 'test' created in 0.08 ms.
name Resources Size Input Path
---------------------------------------------------
baseCo 2 3742851
FichiersBase 5958 5357259729
FichiersBaseTest 5958 5205620197
3 database(s).
Database 'test' was not found.
--------------------
the infos :
--------------
General Information:
Version: 7.8
Used Memory: 1994 KB
The main memory database doesn't exist anymore?
MarcCG
Christian Grün4 Jun 2014 10:24 #
Hi Marc,
Quoted text · Marc · 5 lines
> I try to use the mainmem flag because I use a temporally base to do some > specific treatments and extract it after. > But when I create the database it isn't! > [...] > The main memory database doesn't exist anymore?
Exactly. For more information, please have a look at the following pages (a thank you to Max for extending our Wiki entry):
http://docs.basex.org/wiki/Databases#In_Memory_Database
http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg04139.html
Hope this helps,
Christian
M
Marc4 Jun 2014 10:30 #
I agree with you, that for my use the main memory database are not right because I have to open other database.
But in the example, I just create one and open it!
Marc
Quoted text · Christian Grün · 18 lines
Le mercredi 4 juin 2014 10:24:53, Christian Grün a écrit : > Hi Marc, > >> I try to use the mainmem flag because I use a temporally base to do some >> specific treatments and extract it after. >> But when I create the database it isn't! >> [...] >> The main memory database doesn't exist anymore? > > > Exactly. For more information, please have a look at the following > pages (a thank you to Max for extending our Wiki entry): > > http://docs.basex.org/wiki/Databases#In_Memory_Database > http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg04139.html > > Hope this helps, > Christian
CG
Christian Grün4 Jun 2014 10:31 #
Quoted text · Marc · 3 lines
> I agree with you, that for my use the main memory database are not right > because I have to open other database. > But in the example, I just create one and open it!
After having created the database, it is already open, so there is no need to use "open".
Christian
Quoted text · Marc · 23 lines
> Marc > > Le mercredi 4 juin 2014 10:24:53, Christian Grün a écrit : > >> Hi Marc, >> >>> I try to use the mainmem flag because I use a temporally base to do some >>> specific treatments and extract it after. >>> But when I create the database it isn't! >>> [...] >>> The main memory database doesn't exist anymore? >> >> >> >> Exactly. For more information, please have a look at the following >> pages (a thank you to Max for extending our Wiki entry): >> >> http://docs.basex.org/wiki/Databases#In_Memory_Database >> >> http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg04139.html >> >> Hope this helps, >> Christian
M
Marc4 Jun 2014 10:32 #
ok thank
Marc
Quoted text · Christian Grün · 33 lines
Le mercredi 4 juin 2014 10:31:42, Christian Grün a écrit : >> I agree with you, that for my use the main memory database are not right >> because I have to open other database. >> But in the example, I just create one and open it! > > After having created the database, it is already open, so there is no > need to use "open". > Christian > > >> Marc >> >> Le mercredi 4 juin 2014 10:24:53, Christian Grün a écrit : >> >>> Hi Marc, >>> >>>> I try to use the mainmem flag because I use a temporally base to do some >>>> specific treatments and extract it after. >>>> But when I create the database it isn't! >>>> [...] >>>> The main memory database doesn't exist anymore? >>> >>> >>> >>> Exactly. For more information, please have a look at the following >>> pages (a thank you to Max for extending our Wiki entry): >>> >>> http://docs.basex.org/wiki/Databases#In_Memory_Database >>> >>> http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg04139.html >>> >>> Hope this helps, >>> Christian
FE
Fabrice Etanchaud4 Jun 2014 10:50 #
Dear all,
So one has to disable CREATEONLY in order to set MEMMAIN.
I just tried it because I thought this could explain the issue.
In memory database is a powerful tool,
But it's confusing because database name is lost (no trace in
db:list()), But you can still use it in db:list, db:add, db:open...
Thank you for your impressive software,
I always wonder how I could process xml before.
Best regards.
Fabrice
-----Message d'origine-----Quoted text · Marc · 41 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Marc Envoyé : mercredi 4 juin 2014 10:32 À : Christian Grün Cc : BaseX Objet : Re: [basex-talk] mainmem bug? ok thank Marc Le mercredi 4 juin 2014 10:31:42, Christian Grün a écrit : >> I agree with you, that for my use the main memory database are not >> right because I have to open other database. >> But in the example, I just create one and open it! > > After having created the database, it is already open, so there is no > need to use "open". > Christian > > >> Marc >> >> Le mercredi 4 juin 2014 10:24:53, Christian Grün a écrit : >> >>> Hi Marc, >>> >>>> I try to use the mainmem flag because I use a temporally base to do >>>> some specific treatments and extract it after. >>>> But when I create the database it isn't! >>>> [...] >>>> The main memory database doesn't exist anymore? >>> >>> >>> >>> Exactly. For more information, please have a look at the following >>> pages (a thank you to Max for extending our Wiki entry): >>> >>> http://docs.basex.org/wiki/Databases#In_Memory_Database >>> >>> http://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg >>> 04139.html >>> >>> Hope this helps, >>> Christian
Written for BaseX 7.8. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery