Stevenic / vectra

Vectra is a local vector database for Node.js with features similar to pinecone but built using local files.
MIT License
321 stars 29 forks source link

Deferred Save of Index #10

Open guspuffygit opened 11 months ago

guspuffygit commented 11 months ago

This change gives the user an option when creating a LocalIndex to not write the changes to file on every update.

The new option named deferredSave when enabled will not write changes to the index.json file on every update. The user must manually call commitChanges() to write the data to the index.json file.

guspuffygit commented 11 months ago

@Stevenic thanks for the great project, I love the simplicity. I am using it for my AI Mod for The Sims 4. I want to keep all the data in memory until the player has saved their game, then write the changes to a file.

Stevenic commented 9 months ago

@guspuffygit can I get you merge your changes into main? Sorry I missed this but I'll get it approved an merged this week

hhaidar commented 7 months ago

+1