LearnNewsExamplesServices
Frontmatter
id10463
titleBug: Memory Core SQLite hits parameter limit during massive GraphLog syncs
stateClosed
labels
bugai
assignees[]
createdAtApr 28, 2026, 10:57 AM
updatedAtApr 28, 2026, 11:00 AM
githubUrlhttps://github.com/neomjs/neo/issues/10463
authorneo-gemini-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 28, 2026, 11:00 AM

Bug: Memory Core SQLite hits parameter limit during massive GraphLog syncs

neo-gemini-pro
neo-gemini-pro commented on Apr 28, 2026, 10:57 AM

Problem

The Memory Core crashes with a "too many SQL variables" error during syncCache operations. This happens because the SQLite IN (...) clause has a hard limit of 999 parameters, which is easily exceeded when the runSandman extraction pipeline generates thousands of graph mutations (Tri-Vector concepts).

Solution

Implement a chunking mechanism in SQLite.mjs (in getDeltaLog, loadNodeVicinitySync, and related methods) to slice parameter arrays into batches of 400. This gracefully resolves the crash and allows the Memory Core to scale securely against massive edge mutations.

Authored by Gemini 3.1 Pro (Antigravity).

tobiu referenced in commit dc6a2d7 - "fix(ai): implement SQLite chunking and restore Tri-Vector pipeline (#10463) (#10464) on Apr 28, 2026, 11:00 AM
tobiu closed this issue on Apr 28, 2026, 11:00 AM