Something you can do is to run my store-utils copy script that duplicates and compacts your store.
https://github.com/jexp/store-utils/tree/20 On Sun, Sep 14, 2014 at 11:19 AM, jer <[email protected]> wrote: > Hi Chris, > > Thanks for your reply. Sometimes I didn't shut down the database cleanly > in embedded server script. Is there any way to restore this from neo4j > itself? Or is it okay for me to truncate the useless zeros by hand? > > Best Wishes, > Jer > > > > On Saturday, September 13, 2014 7:14:32 PM UTC-4, Chris Vest wrote: >> >> Did you shut the database down cleanly before looking at the files? The >> database grabs space for new records in chunks, and then truncates unused >> space off the end of the files on clean shut downs. >> >> -- >> Chris Vest >> System Engineer, Neo Technology >> [ skype: mr.chrisvest, twitter: chvest ] >> >> >> On 13 Sep 2014, at 20:35, jer <[email protected]> wrote: >> >> Hi alll, >> >> I'm playing around with the neo4j store files. What I do is to import the >> movie graph provided by neo4j. It has roughly 100 nodes, given that each >> node take 14 bytes, I expect the node store file takes around 1kB. However, >> the data file takes more than 200kB of space. When I look at the file in >> hex editor, it seems that only the starting of the file has node contents. >> The remaining of the file is just all zeros. So it is the situation in >> other store files. Could anyone give any hint on why this is the case? Why >> the real data takes only less than 1% of the store file and what benefit >> does it provide? >> >> Thanks! >> Jer >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
