--
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 h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
Hi,It is a known problem that the .mv.db file grows large, and I'm working on reducing the file size. However it shouldn't grow _that_ large. Could you post your test case please?Regards,
Hello,--
I'm using Anorm (in Play framework 2.3.6) to store one table with 450000 rows in H2 (1.4.182).
The table is created by "CREATE TABLE terms (name VARCHAR(20) PRIMARY KEY, df INT)"
After frequently INSERT and UPDATE all the data into the table, the .mv.db file size grows up to 20GB.
Then, I close the JDBC connection and open it again, and the .mv.db file size drop back to 44MB.
Any idea why the file size can grow and drop so much? I have checked the content of table, and the data seems unchanged.
I'm not sure if it's the problem of transaction log, but by default, Anorm use JDBC with auto-commit, so each INSERT and UPDATE should be in one single transaction?
Anorm: https://playframework.com/documentation/2.3.x/ScalaAnorm
Thanks,
pishen
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+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/dqONbAmK9-M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
--
Hi,See the documentation at http://h2database.com/html/grammar.html#set_retention_time> Does this setting work when db is open?Yes> On my observations db reduces its size when closedIt should ensure that the database file doesn't grow as large, as less old data is kept.> in my case it is open all the timeThat's fine.Regards,Thomas
Hi Thomas,--
Does this setting work when db is open? On my observations db reduces its size when closed,
and in my case it is open all the time. Or am I mistaken?
On Tuesday, March 17, 2015 at 7:05:57 PM UTC+2, Thomas Mueller wrote:Hi,Yes, there is the "retention_time" setting. Did you try that already? I would be interested how much this helps in your case.Regards,Thomas
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+unsubscribe@googlegroups.com.