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
This bug happens when saving a collection in a periodic manner like the example below.
# Create the DB and collection...for_inrange(300):
records=Record.many_random(dimension=512, len=100)
collection.insert_many(records)
db.save_collection("storage", collection)
This caused unflushed dirty IO buffers to bloats the database folder to an amount unimaginable 🤯
From 70MB database size to 10GB.
Read the discussion #77 for more context about what is happening.
The text was updated successfully, but these errors were encountered:
The methods added in #84, Database.flush and Database.async_flush don't solve this issue. It seems that the correct approach to fix this issue is to store the collection in it's own file and only use Sled to store the reference to the file.
Description
This bug happens when saving a collection in a periodic manner like the example below.
This caused unflushed dirty IO buffers to bloats the database folder to an amount unimaginable 🤯
From 70MB database size to 10GB.
Read the discussion #77 for more context about what is happening.
The text was updated successfully, but these errors were encountered: