Skip to content

fix: paginate closet_llm col.get (#1073)#1107

Merged
igorls merged 1 commit intoMemPalace:developfrom
sha2fiddy:fix/1073-closet-llm-paginate
May 6, 2026
Merged

fix: paginate closet_llm col.get (#1073)#1107
igorls merged 1 commit intoMemPalace:developfrom
sha2fiddy:fix/1073-closet-llm-paginate

Conversation

@sha2fiddy
Copy link
Copy Markdown
Contributor

Paginate regenerate_closets drawer fetch (batch_size=5000) to avoid SQLITE_MAX_VARIABLE_NUMBER crash on large palaces. Mirrors #851. Closes #1073.

@igorls igorls added the bug Something isn't working label Apr 24, 2026
@sha2fiddy sha2fiddy force-pushed the fix/1073-closet-llm-paginate branch 2 times, most recently from ecba48b to 18e52d3 Compare April 29, 2026 21:26
Mirror the pagination pattern PR MemPalace#851 landed in miner.py:status().
A single drawers_col.get(limit=total, ...) on palaces larger than
SQLite's SQLITE_MAX_VARIABLE_NUMBER (32766) crashes inside chromadb.

Fetch drawers in batch_size=5000 chunks, stepping offset until the
collection is drained. by_source aggregation semantics are preserved
exactly — grouping, wing filter, meta capture all unchanged.

Closes MemPalace#1073. Related: MemPalace#802, MemPalace#850, MemPalace#1016.
@sha2fiddy sha2fiddy force-pushed the fix/1073-closet-llm-paginate branch from 18e52d3 to db28bf1 Compare April 29, 2026 23:02
@igorls igorls added this to the v3.3.5 milestone May 2, 2026
@igorls igorls merged commit 778f830 into MemPalace:develop May 6, 2026
6 checks passed
igorls added a commit that referenced this pull request May 6, 2026
…1282 #1167 #1160

Bundled CHANGELOG entries for the seven Tier-1 PRs merged today, including
the behavior-change call-out for #1167 (KG date validators now reject
non-ISO inputs that previously produced silent empty results).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mempalace status CLI fails on palaces with >32k drawers: too many SQL variables (miner.py:852)

2 participants