Skip to content

Bump to lance-graph 0.5.1 with catalog cache#11

Merged
prrao87 merged 4 commits intomainfrom
feat/bump-0.5.1-cypher-engine
Feb 5, 2026
Merged

Bump to lance-graph 0.5.1 with catalog cache#11
prrao87 merged 4 commits intomainfrom
feat/bump-0.5.1-cypher-engine

Conversation

@prrao87
Copy link
Copy Markdown
Owner

@prrao87 prrao87 commented Feb 5, 2026

Bumps lance-graph to v0.5.1. This version of lance-graph contains a new CypherEngine that reuses (caches) the catalog, so each time a new query runs, the engine doesn't need to rebuild the catalog. See lance-format/lance-graph#124

This improves performance by more than 2x in some queries (where rebuilding the catalog was a significant fraction of runtime). For more expensive queries, it's expected that the reusable cache doesn't help much as most of the time is spent in query execution.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request bumps the lance-graph dependency from version 0.4.0 to 0.5.1, which introduces a new CypherEngine API that caches the graph catalog to avoid rebuilding it for each query. This improvement delivers significant performance gains, with some queries showing more than 2x speedup.

Changes:

  • Updated lance-graph dependency from 0.4.0 to 0.5.1 in pyproject.toml and uv.lock
  • Modified query.py to optionally use CypherEngine with catalog caching when available, while maintaining backward compatibility
  • Updated all benchmark tests to pass the cached engine instance
  • Added new benchmark results showing performance improvements and archived old results
  • Updated documentation with new benchmark numbers

Reviewed changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
uv.lock Updates lance-graph from 0.4.0 to 0.5.1 with new package hashes and manylinux version
pyproject.toml Updates lance-graph minimum version requirement to 0.5.1
lance_graph/query.py Adds CypherEngine import with fallback, ENGINE_CACHE for catalog caching, get_engine() helper, and updates all query functions to accept optional engine parameter
lance_graph/benchmark_query.py Updates fixture to create and cache engine instance, propagates engine to all benchmark tests
results/lance-graph-0.5.1.txt New benchmark results showing improved performance
results/archive/lance-graph-0.4.0.txt Archived previous benchmark results
results/benchmark_plot.png Regenerated plot with updated benchmark data
lance_graph/README.md Updates embedded benchmark results to reflect new performance
README.md Updates high-level results table with new lance-graph-0.5.1 timings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lance_graph/query.py
Comment thread lance_graph/query.py
Comment thread README.md Outdated
prrao87 and others added 2 commits February 4, 2026 20:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@prrao87 prrao87 merged commit c7f3b64 into main Feb 5, 2026
@prrao87 prrao87 deleted the feat/bump-0.5.1-cypher-engine branch February 5, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants