Hi, Yes, it's quite hard to get the MVStore to shrink the file size. Disk space is re-used, but in this case the file should shrink a lot more quickly I think. Well, it shouldn't shrink immediately, to ensure changes are not lost if there is a power failure (this is quite a hard problem to solve), but it should shrink eventually.
Thanks to your description, I have a test case now that should help me fix this issue. I did have a few test cases, and disk space is re-used, but there still seem to be a few bugs. Thanks a lot! Regards, Thomas On Tuesday, May 14, 2013, Thorsten Marx wrote: > Hi, > > good to know. > > Can you give me some hints for using compact. I have a simple test, where > 100000 objects are added to a MVMap. When I call clear on the map all > entries are removed but the filesize is still the same. When i start the > test again, the filesize increases, even if I call compact. shouldn't > compact reduce the filesize. > > regards, > Thorsten > > Am Montag, 13. Mai 2013 22:47:07 UTC+2 schrieb Thomas Mueller: >> >> Hi, >> >> By the way, currently you need to call "commit" from time to time (not >> too often if possible, for best performance). This is currently needed, but >> I think in future versions there will be "auto-commit" from time to time by >> default (a feature that can be disabled). This will still allow you to >> commit manually, but it will no longer be needed. >> >> Regards, >> Thomas >> >> >> >> On Mon, May 13, 2013 at 3:49 PM, Thorsten Marx <[email protected]> wrote: >> >>> Thanks for the reply. >>> >>> Most of the time I only use put and get, I think these methods will be >>> stable and I don't need to change my code very often. >>> >>> I will try it. >>> >>> >>> Am Mittwoch, 8. Mai 2013 22:08:30 UTC+2 schrieb Thomas Mueller: >>>> >>>> Hi, >>>> >>>> I don't expect any big changes, but I still consider it experimental, >>>> because the API might change, and because it is not fully tested (specially >>>> multi-threading). But depending on your use case it might already be "good >>>> enough", specially if you have your own test cases to ensure the features >>>> you use are working as expected. >>>> >>>> Regards, >>>> Thomas >>>> >>>> >>>> >>>> On Wed, May 8, 2013 at 11:25 AM, Thorsten Marx <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm looking for a java embedded key-value store with support for >>>>> versioning. >>>>> I've found the MVStore implementation and it seems to be exactly what >>>>> I'm looking for. >>>>> My question is, is it usable for production in the current version? >>>>> >>>>> Kind regards >>>>> Thorsten >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "H2 Database" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to h2-database...@**googlegroups.**com. >>>>> To post to this group, send email to [email protected]. >>>>> >>>>> Visit this group at http://groups.google.com/**group** >>>>> /h2-database?hl=en <http://groups.google.com/group/h2-database?hl=en>. >>>>> For more options, visit >>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "H2 Database" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to h2-database...@**googlegroups.com. >>> To post to this group, send email to [email protected]. >>> Visit this group at >>> http://groups.google.com/**group/h2-database?hl=en<http://groups.google.com/group/h2-database?hl=en> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
