Skip to content

Conversation

@phernandez
Copy link
Member

@phernandez phernandez commented Apr 6, 2025

Key Changes:

  • Prevent creating permalinks for markdown files without frontmatter
  • Add configuration option to update permalinks when files are moved

Specific Improvements:

  • Only create permalinks when frontmatter is present in a markdown file
  • Add a configuration setting to enable updating permalinks during file moves

The changes aim to improve the permalink generation process by:

  1. Avoiding "useless permalink values" for files without metadata
  2. Providing more flexible permalink management through configuration

fixes #73

@phernandez phernandez merged commit 617e60b into main Apr 6, 2025
10 checks passed
@phernandez phernandez deleted the issue-73/permalink-enhancements branch April 6, 2025 19:55
@phernandez phernandez removed this from basic-memory Apr 7, 2025
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>
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.

[BUG] Permalink does not change when file changes for local changes

2 participants