perf(checkpoint-sqlite): fix N+1 query in list() and alist()#7204
Open
Giorgi Duchidze (gduchidze) wants to merge 8 commits intolangchain-ai:mainfrom
Open
perf(checkpoint-sqlite): fix N+1 query in list() and alist()#7204Giorgi Duchidze (gduchidze) wants to merge 8 commits intolangchain-ai:mainfrom
Giorgi Duchidze (gduchidze) wants to merge 8 commits intolangchain-ai:mainfrom
Conversation
Replace per-checkpoint writes queries with a single batched query. For N checkpoints, this reduces database queries from N+1 to 2.
Contributor
|
This PR has been automatically closed because it does not link to an approved issue. All external contributions must reference an approved issue or discussion. Please:
Maintainers: reopen this PR or remove the |
Open
7 tasks
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.
Resolves #7263
Replace per-checkpoint writes queries with a single batched query. For N checkpoints, this reduces database queries from N+1 to 2.
Thank you for contributing to LangGraph! Follow these steps to mark your pull request as ready for review. If any of these steps are not completed, your PR will not be considered for review.
PR title: Follows the format: {TYPE}({SCOPE}): {DESCRIPTION}
{TYPE}values:{SCOPE}values (optional):PR message: Delete this entire checklist and replace with
Add tests and docs: If you're adding a new integration, you must include:
docs/docs/integrationsdirectory.Lint and test: Run
make format,make lintandmake testfrom the root of the package(s) you've modified. We will not consider a PR unless these three are passing in CI. See contribution guidelines for more.Additional guidelines:
pyproject.tomlfiles (even optional ones) unless they are required for unit tests.