-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] fix persistent HNSW parameter migration #2511
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
If someone upgraded to 0.5.4, and the migration already ran, will it have to be rerun? |
yes, @atroyn do you know where would be a good place to hook in for this? |
I think this will have to re-run if it's already migrated, yes. The reason is the migration (which calls The fix is going to be to make sure that the HNSWConfiguration represented in the CollectionConfiguration string contains all the HNSW metadata keys. This is annoying because it means we have to check metadata on every read. I am not sure we want to eat that performance hit for the possibly 0 users who will have ever changed |
I'm unclear on why this is triggering since the migration is nondestructive? |
Description of changes
Now correctly handles migration of persistent HNSW params.
Test plan
I updated the
cross_version_persist
test to parameterize acrosswith_persistent_hnsw_params = [False, True]
. Before the changes tochromadb/db/mixins/sysdb.py
, the updated test was failing.