RaptorDB-Document icon indicating copy to clipboard operation
RaptorDB-Document copied to clipboard

How to reduce the size of .mgbmp file ?

Open netwenchao opened this issue 6 years ago • 3 comments

How to reduse the size of .mgbmp file ? RemoveKey only remove key from idx and mark the storageitem in *.mgbmp as deleted.

But the file size has not decreased. Is there anyway to remove storageitem from raptordb??

netwenchao avatar Nov 07 '18 01:11 netwenchao

The bitmap index has an Optimize() method which is currently only being used by the hOOt full text index, I will add this to all other indexes.

No you can't remove a StorageItem as it is by design, if you are working with transient data use the high frequency storage instead.

Thanks.

mgholam avatar Nov 07 '18 04:11 mgholam

The bitmap index has an Optimize() method which is currently only being used by the hOOt full text index, I will add this to all other indexes.

No you can't remove a StorageItem as it is by design, if you are working with transient data use the high frequency storage instead.

Thanks.

After the system has been running for a while, the size of the .mgbm file is increasing (currently 7G). I need to periodically delete the old data to reduce the disk space.

But the most recent data needs to be retained. Is there any other way?

netwenchao avatar Nov 09 '18 01:11 netwenchao

Ah! Interesting.

Can you answer a few questions for me:

  • How many items are in your view?
  • Can you post a "dir" of the view folder contents (with the 7gb index)?
  • How big is the docs folder?

mgholam avatar Nov 09 '18 05:11 mgholam