-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON / buffer performance #111
Comments
Whether you insert vectors as buffers or JSON, it'll be stored in the same way, so there's no storage-related benefit either way. There may be some small CPU perf improvement if you use buffers instead (since it doesn't need to serialize/deserialize JSON), but you probably won't notice much of a difference. Insert data with JSON in better-sqlite should work the same - do you mind sharing some sample code? Be sure to call |
Are there any performance differences between using buffers and JSON strings to store embeddings?
FYI on node I am only able to get node-sqlite3 (and not better-sqlite) to work with JSON storage.
The text was updated successfully, but these errors were encountered: