I am using H2 1.4.196. I have a payload table that contains a LOB. I run the deletion of entities in a table through a Java program and verify using the H2 console that the table is now empty.
However, the db.mv file is not reduced in size. Re-creating and deleting the LOB leaves the table empty, but db.mv continues to grow indefinitely, and while looking at the file, I still see the contents of the LOB. Only on DROP TABLE. The payload reduces the size of the db.mv file.
I had a theory that this could be an open transaction, but SELECT * FROM INFORMATION_SCHEMA.SESSIONS showed only the session created by the sql session statement.
What could be the reason for the inability to truly remove the LOB?
sql hibernate jpa h2
Phillip godzin
source share