wrolpi/modules/docs/test
lrnselfreliance c0452e29e6
Hiding a Calibre book's cover and metadata uses the modeler's session (#936)
Doc._hide_calibre_files opened a second write session while the modeler held
the item's transaction.  SQLite has one writer, so the second session waited
out the 30 s busy timeout and failed with "database is locked"; the modeler
retried three times, so every Calibre epub cost about 98 s and stayed
unmodeled, and the cover.jpg / metadata.opf FileGroups it should have deleted
survived.  On a library of 1663 Calibre books the global refresh's modeling
phase would have taken about two days.

The nested session dates from before the SQLite cutover, when Postgres row
locks let it work.  The delete now runs in the caller's session.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-02 11:04:28 -07:00
..
__init__.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
test_api.py Archive and doc pages record a view in its own write transaction (#813) 2026-10-11 14:13:50 -06:00
test_doc_modeler.py Hiding a Calibre book's cover and metadata uses the modeler's session (#936) 2026-11-02 11:04:28 -07:00
test_extractors.py Adding simple search to epub viewer. 2026-04-13 17:23:20 -06:00
test_lib.py An author or subject beginning with a non-ASCII capital finds its collection (#902) 2026-10-30 18:37:50 -06:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00