mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 05:09:58 -05:00
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> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| downloader.py | ||
| indexers.py | ||
| lib.py | ||
| models.py | ||
| schema.py | ||
| worker.py | ||