Re: [hawtdb] After closing PageFile can't get anymore the contents

37 views
Skip to first unread message

Hiram Chirino

unread,
Aug 13, 2012, 9:50:08 AM8/13/12
to haw...@googlegroups.com
See:


'Furthermore, Non-Transactional page files do keep a persistent free page list. When it is reopened it will think all the pages can be used for new page updates.'

Use the transactional version.  Should work as you expected.

On Sun, Aug 12, 2012 at 1:22 PM, Andrea Selva <selva...@gmail.com> wrote:
Hi,
HawtDB sounds like a great tool, but I'm not able to make it working.

I create a PageFile, create an index on it, store some data, flush the pagefile. Then with a new fresh PageFileFactory i opean the file and the Index to retrive the data, but seems like there no data inside the index.

 Where I'm wrong?
 
In attachment there is a groovy script that shows the problem.
 Many thanks
   Andrea




--

Hiram Chirino

Software Fellow | FuseSource Corp.

chi...@fusesource.com | fusesource.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo




Andrea Selva

unread,
Aug 13, 2012, 5:19:09 PM8/13/12
to haw...@googlegroups.com, hi...@hiramchirino.com
Hi Hiram,
so if I'm not wrong and I've understood correctly if I don't use transaction, my data is not stored and is lost? Sounds quite strange. Probably I've done an error in using PageFile, because I close the pageFile and not the PageFileFactory instance, closing the factory instance seems to flush buffers to disk, without using transactional page files.
 I'm wrong?
  Thankyou for the hint
    Andrea
Reply all
Reply to author
Forward
0 new messages