feat: permalink enhancements#82
Merged
Merged
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
…ment Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
phernandez
added a commit
that referenced
this pull request
Sep 26, 2025
Implements comprehensive performance optimizations for MCP tool response times, addressing GitHub issue #82: Key Changes: • Cache database connections in app.state during API lifespan • Update dependency injection to use cached connections • Remove project reconciliation from API startup • Add skip_initialization_sync configuration option Performance Impact: • 95-99% improvement in read operations (350ms-2.6s → 20ms) • 75-92% improvement in edit operations (350ms-2.6s → 218ms) • Eliminated per-request database initialization overhead • Zero additional overhead for project switching Technical Details: • Modified FastAPI lifespan to cache engine/session_maker • Updated get_engine_factory() to use app.state connections • Preserved CLI fallback for non-API contexts • Added performance configuration flag for cloud deployments Validated through comprehensive live testing showing consistent performance improvements across all Tier 1 MCP tools. Resolves: #82 (Basic Memory API Performance Optimization) Implements: SPEC-11 API Performance Optimization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
5 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.
Key Changes:
Specific Improvements:
The changes aim to improve the permalink generation process by:
fixes #73