Merged
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
==========================================
+ Coverage 82.86% 83.10% +0.24%
==========================================
Files 9 11 +2
Lines 887 876 -11
Branches 179 165 -14
==========================================
- Hits 735 728 -7
+ Misses 71 67 -4
Partials 81 81
|
davkhech
reviewed
Aug 15, 2023
davkhech
reviewed
Aug 15, 2023
src/hnsw/external_index.h
Outdated
| uint32 vector_dim; | ||
| uint32 num_vectors; | ||
| BlockNumber last_data_block; | ||
| uint32 blockno_index_start; |
Contributor
There was a problem hiding this comment.
I think we can get rid of this one as well. Maybe in separate PR though
davkhech
reviewed
Aug 15, 2023
| return ed; | ||
| } | ||
|
|
||
| void extra_dirtied_add(ExtraDirtiedBufs *ed, BlockNumber blockno, Buffer buf, Page page) |
Contributor
There was a problem hiding this comment.
maybe not good suggestion, but I'd rather pass the context and then get the buffers from the context here
7116a05 to
f92da5c
Compare
a5922de to
2836a03
Compare
4fa5175 to
65ead0b
Compare
var77
reviewed
Aug 20, 2023
scripts/run_all_tests.sh
Outdated
| TMP_OUTDIR=$TMP_ROOT/tmp_output | ||
| FILTER="${FILTER:-}" | ||
| DB_USER="${DB_USER:-}" | ||
| DB_USER="${DB_USER:-postgres}" |
Collaborator
There was a problem hiding this comment.
I think we can set default to os user
Suggested change
| DB_USER="${DB_USER:-postgres}" | |
| DB_USER="${DB_USER:-$USER}" |
Contributor
Author
There was a problem hiding this comment.
Good catch! fixed, and also made sure to use "postgres" in place of "root" when root is the user.
This is useful for when we are in docker containers
var77
approved these changes
Aug 20, 2023
davkhech
reviewed
Aug 20, 2023
davkhech
reviewed
Aug 20, 2023
eb7db07 to
28ea3a7
Compare
* if the user is root, this is typically in docker and the database is usually under postgres user * if the user is something else, typically a psql user exists for the user so we attempt to use that. * we set the user once in run_all_tests instead of running the same logic again in test_runner
Now when usearch external retriever is initialized, an opeque is passed in which then is passed back in retrievers. This way, we no longer need to have global variables to manage memory on which external index nodes live.
Get rid of num_blocks in index header Cleanup and format
28ea3a7 to
81fff45
Compare
var77
added a commit
that referenced
this pull request
Oct 8, 2024
…51) * Cancel running embedding job with tokio tasks * Gracefully exit ongoing embedding job if the job is canceled from db * Delete collected insert rows on job cancel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
extra_dirtiedpage tracking to per-index-operation contextRethink variables names and, generally, cleanup(cleaned up a little, needs more work but let's do that later)external_index.cIncorporates the commit from #67 and closes #67