Do I have to call compactMoveChunks or the store is compacted 
automatically? couldn't find that in help.. 
I suspect that call causes corruption(not sync, close..)

On Wednesday, December 30, 2015 at 10:44:40 AM UTC+1, Jan Juno wrote:
>
> what if I call
>
> sync()
> and closeImmediatelly()?
>
> is it the same as calling close() only?
>
> I had called close() before and it corrupted the DB on android
>
> commit()
> closeImmediatelly() didnt't help
>
> so now I will try calling
>
> sync()
> closeImmediatelly()
>
>
> seems that commit, sync and close write changes to the file am getting 
> little bit confused here..
>
> help ;P
>
>
> On Monday, December 28, 2015 at 5:11:38 PM UTC+1, Jan Juno wrote:
>>
>> Hi All
>>
>> I am using MVStore on android and the store get's sometimes corrupted. I 
>> have uses close() when closing DB.
>>
>> store = new 
>> MVStore.Builder().autoCommitDisabled().compressHigh().fileName(dbName).open();
>> store.setVersionsToKeep(0);
>> store.setReuseSpace(true);
>>
>> I call store.commit() regularly and DB is closed with call 
>> closeImmediatelly()
>>
>> What's the difference between calling 
>>
>> store.setVersionsToKeep(0);
>> store.commit()
>> store.closeImmediatelly()
>>
>> and calling only
>>
>> store.close()
>>
>> no commit() is called, and autoCommitDisabled()
>>
>

-- 
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 https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to