wrolpi/wrolpi/files
Roland b3dcb0046e
Chunk upsert_directories INSERT to respect SQLite variable limit
Refreshing all files failed on a large media directory with
RuntimeError: values_clause: too many parameters (44454 rows x 3).
After the Postgres->SQLite cutover, values_clause guards against
exceeding SQLite's ~32k bound-variable limit, but upsert_directories
still built a single multi-row VALUES clause over every discovered
directory.

Insert in BULK_SQL_CHUNK_SIZE batches, matching the existing bulk
tag-file callers.  Adds a regression test that inserts more directories
than a single statement can bind.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 11:13:11 -06:00
..
test Chunk upsert_directories INSERT to respect SQLite variable limit 2026-07-20 11:13:11 -06:00
__init__.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
api.py Search: fast ABC mode by default, opt-in deep search 2026-07-03 10:32:16 -06:00
downloader.py Migrating FileDownloader. 2026-05-07 15:54:53 -06:00
indexers.py HTML indexer is binary-safe; it indexes the page inside a compressed singlefile. 2026-06-12 17:24:02 -06:00
lib.py Chunk upsert_directories INSERT to respect SQLite variable limit 2026-07-20 11:13:11 -06:00
models.py SQLite: make the browse pages index-only. 2026-07-14 07:46:29 -06:00
schema.py Search: fast ABC mode by default, opt-in deep search 2026-07-03 10:32:16 -06:00
worker.py Prevent the zims directory from being ignored by file refresh. 2026-07-19 13:36:52 -06:00