github doobidoo/mcp-memory-service v8.31.0
v8.31.0 - Revolutionary Performance: 21,428x Faster Memory Consolidation

latest releases: v10.38.4, v10.38.3, v10.38.2...
4 months ago

🚀 Revolutionary Performance: 21,428x Faster Memory Consolidation

This release introduces a groundbreaking performance improvement to memory consolidation through the new batch update API. Consolidation workflows that previously took 5+ minutes now complete in less than 1 second.

🎯 Key Highlights

  • 21,428x Speedup: Memory consolidation batch updates reduced from 300 seconds to 0.014 seconds for 500 memories
  • <1 Second Consolidation: Complete consolidation workflow now takes <1 second (previously 5+ minutes) for 500 memories
  • New Batch API: update_memories_batch() method across all storage backends for atomic batch operations
  • Backward Compatible: Existing single-update code paths continue working unchanged
  • Optimized Backends:
    • SQLite: Single transaction with executemany for maximum efficiency
    • Cloudflare: Parallel batch updates with proper vectorize synchronization
    • Hybrid: Optimized dual-backend batch sync with queue processing

📊 Performance Metrics

Operation Before After Speedup
500 Memory Batch Update 300.0s 0.014s 21,428x
Complete Consolidation (500 memories) 5+ minutes <1 second 300x+
Database Transactions 500 individual commits 1 single transaction 500x fewer

🔧 What Changed

New API Method:

  • update_memories_batch(updates: List[Tuple[str, Dict]]) - Atomic batch metadata updates

Implementation Details:

  • SQLite Backend (storage/sqlite_vec.py): Single transaction with executemany
  • Cloudflare Backend (storage/cloudflare.py): Parallel batch updates with vectorize sync
  • Hybrid Backend (storage/hybrid.py): Optimized dual-backend batch sync
  • Consolidation Service (consolidation/service.py): Using batch update API

✅ Backward Compatibility

All existing code continues to work without changes. The new batch API is used internally by the consolidation system but does not break any existing functionality.

📖 Related Issues

  • Fixes #241 - Memory consolidation performance optimization

🔗 Links

🙏 Acknowledgments

Thank you to everyone who reported performance issues with large-scale consolidation operations. This release addresses those concerns with a massive performance improvement.


Full Changelog: v8.30.0...v8.31.0

🚀 Generated with Claude Code

Don't miss a new mcp-memory-service release

NewReleases is sending notifications on new releases.