Frontmatter
| id | 9699 |
| title | Test: GraphService SQLite Lazy-Loading Coverage |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Apr 4, 2026, 6:44 PM |
| updatedAt | Apr 4, 2026, 6:54 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9699 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9680 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 4, 2026, 6:54 PM |
Test: GraphService SQLite Lazy-Loading Coverage
Closedenhancementai
tobiu added parent issue #9680 on Apr 4, 2026, 6:44 PM

tobiu
Apr 4, 2026, 6:54 PM
Completed via 99343e0c7. The integration tests correctly isolate the RAM cache miss simulation by suppressing cascade deletions into the SQLite native layer using autoSave = false. The tests now successfully verify the lazy-loading synchronous data rehydration.
tobiu closed this issue on Apr 4, 2026, 6:54 PM
tobiu assigned to @tobiu on Apr 4, 2026, 6:54 PM
Problem
The Native Edge Graph Database distributed caching architecture was recently stabilized (Issue #9697), enabling
GraphServiceto lazily hydrate its in-memory RAM cache from the underlying SQLite datastore. However, there is currently no unit test coverage explicitly verifying that the memory layer successfully rehydrates automatically upon a cache miss.Expected Behavior
test/playwright/unit/ai/mcp/server/memory-core/services/GraphService.spec.mjsshould explicitly clearGraphService.db.nodesandedges, and ensure that requestinggetNode(),getNeighbors(), andgetContextFrontier()seamlessly restores properties directly from SQLite without data loss.