New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not compact automatically when getChunksFillRate()
is below autoCompactFillRate
#2600
Comments
First of all, autoCompactFillRate is a suggestion, not a guarantee. You are making some assumptions here about internal (undocumented) behaviour. For instance getChunksFillRate() may be not what you think it is, there is also getFillRate(). In general, I fail to understand what is the point you are making here. |
Thank you for the advice. During my test on insert-delete scenario, however, the file generated by |
h2-1.4.201-SNAPSHOT redefined
When I changed Should re-document |
No it should not be documented, and it will definitely be removed at some point. The only reason it is still there is to have some temporary workaround, if new version does not perform well. Difference in file size between 490 and 660 MB is not something I would worry about. |
H2 now has two types of compaction:
H2 1.4.200 rewrite chunks in background and move chunks in database shutdown, while current 1.4.201-SNAPSHOT rewrite chunks for negative May introduce two different settings for these two types of compaction. |
In h2-1.4.200 when I set
autoCompactFillRate
(e.g. 80%), MVStore file will compact oncegetChunksFillRate()
is below the value. But in the latest master branch it does not seem to compact any longer.I'm testing an insert-delete scenario and monitoring
getChunksFillRate()
, using the stable version (h2-1.4.200) and the latest snapshot (h2-1.4.201-SNAPSHOT), both setautoCompactFillRate
to 80. In the stable version, chunks fill rate slowly decreases to 79 and then rapidly increases to 81-94, again and again; In the snapshot version, chunks fill rate slowly decreases below 80 (now reach to 70 and keep unchanged several hours).The text was updated successfully, but these errors were encountered: