Repository navigation
Optimize Kuzu watch refresh performance - #791
Closed
DmytroTelish wants to merge 1 commit into
Closed
DmytroTelish wants to merge 1 commit into
DmytroTelish wants to merge 1 commit into
Conversation
|
Someone is attempting to deploy a commit to the shashankss1205's projects Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Apr 3, 2026
Closed
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.
Summary
Related Issues
Large Repo Measurements
Observed on a large monorepo of roughly 2,190 files / 8,764 functions / 1,147 classes.
Before this patch:
20-26sbefore the new symbol became queryable through MCP100 / 1691 filesafter103.7sAfter this patch:
<= 10spoll on the same repo0.0sfor both function-call and inheritance relinking in the instrumented runThese are local measurements on a large real-world repo, not a controlled benchmark.
Testing
PYTHONPATH=$(pwd)/src ~/.local/pipx/venvs/codegraphcontext/bin/python -m pytest tests/unit/core/test_watcher_incremental_refresh.py tests/unit/tools/test_graph_builder_batch_updates.py -vORIG_HOME="$HOME"; TMP_HOME=$(mktemp -d /tmp/cgc-fast-home.XXXXXX); CLEANUP_FILE=.env.codex-fast-temp; printf 'DEFAULT_DATABASE=kuzudb\nENABLE_AUTO_WATCH=false\n' > "$CLEANUP_FILE"; rm -f .env; ln -s "$CLEANUP_FILE" .env; trap 'rm -f .env "$CLEANUP_FILE"' EXIT; HOME="$TMP_HOME" PATH="$ORIG_HOME/.local/pipx/venvs/codegraphcontext/bin:$ORIG_HOME/.local/bin:$PATH" PYTHONPATH=$(pwd)/src ./tests/run_tests.sh fastcgc mcp start, attachwatch_directory, mutate provider and consumer files, then verify the new symbol and caller edge are queryable through MCP