You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application I'm working on runs on IoT gateways with limited resources (~100MB storage free). Therefore, I submitted #373 to be able to proactively reclaim disk space after deleting "expired" documents from indexes.
I wrote a test where I do the following:
Create and initialize a new index, take snapshot of size of index folder
Just to be sure the Compact method was actually doing something, I commented out that line and ran again (create 1000, delete 1000, no compact). Without the call to Compact, deleting the 1000 documents actually increases the size of the index:
Iteration
After adding 1K docs
After delete only
1
6.6M
8.5M
2
7.4M
9.3M
3
8.0M
9.9M
4
8.6M
11M
5
9.4M
11M
Is this a bug? I'm wondering if there's some set of keys that gets created when a document is indexed that is not getting deleted when the document is removed?
The application I'm working on runs on IoT gateways with limited resources (~100MB storage free). Therefore, I submitted #373 to be able to proactively reclaim disk space after deleting "expired" documents from indexes.
I wrote a test where I do the following:
Compactmethod I added in Add compact method to goleveldb store #373Here are the sizes of the index folder:
Size at start: 52K
Just to be sure the
Compactmethod was actually doing something, I commented out that line and ran again (create 1000, delete 1000, no compact). Without the call toCompact, deleting the 1000 documents actually increases the size of the index:Is this a bug? I'm wondering if there's some set of keys that gets created when a document is indexed that is not getting deleted when the document is removed?