You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9156e19
Browse filesBrowse the repository at this point in the historyBrowse files
fix(memory): large legacy memory index stalls and restarts instead of finishing
An agent with a large pre-existing memory index could see `openclaw memory
index` appear to hang and vector search never reach ready after upgrading to
the canonicalized memory schema. The one-time legacy->canonical migration runs
in a single transaction on every store open and verifies the copy with a
full-tuple anti-join that byte-compares the text/embedding columns it just
copied. On a large store that verification dominates migration time and grows
super-linearly, so any interruption rolls the transaction back, leaving the
legacy tables in place to restart from scratch on the next open.
When the canonical table was empty before the copy, INSERT OR IGNORE from a
single legacy source cannot collide, so the anti-join can only ever return
zero. Verify that case with a row-count match instead, and keep the full
anti-join only when the canonical table already held rows (the real conflict
case). What gets migrated and conflict handling are unchanged.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
0 commit comments