wrolpi/modules/videos
lrnselfreliance 6bcd182cd9
Some checks are pending
Backend Tests / api-tests (core) (push) Waiting to run
Backend Tests / api-tests (files) (push) Waiting to run
Backend Tests / api-tests (media) (push) Waiting to run
Backend Tests / api-tests (rest) (push) Waiting to run
Backend Tests / api-contract-tests (push) Waiting to run
Backend Tests / api-migrations-and-start (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Cypress Tests / cypress-component-tests (push) Waiting to run
Cypress Tests / cypress-e2e-tests (push) Waiting to run
Dead Code / vulture (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run
Search estimates and channel suggestions do not read every large row (#1092)
Both ran on every global search and were slow from a cold disk cache:

- search_file_estimates joined each FTS match to its file_group row just
  to count it; a common word is a random read per match.  With only a
  search string, both counts now come from the FTS index alone (as files
  search counts since #1086).
- search_suggestions' channel search read every channel row (each holds
  its yt-dlp info_json): the name order scanned the table, and the video
  count order grouped by channel.id, which walks the table in rowid order.
  The matching channel ids now come from collection names and covering
  indexes (a correlated video count instead of GROUP BY), then only those
  channels are loaded.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:36:24 -07:00
..
channel Search estimates and channel suggestions do not read every large row (#1092) 2026-12-03 20:36:24 -07:00
test Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
video Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
__init__.py files: shared modeler batch loop for video, doc, zim, archive (#722) 2026-09-24 16:47:46 -06:00
api.py db: request-path library functions use the request's connection (#774) 2026-10-04 11:05:20 -06:00
common.py The tail-decode check ignores the h264 decoder's "mmco: unref short failure" note (#938) 2026-11-02 18:00:03 -07:00
conftest.py The Any Tag filter works on the Videos, Archives and Docs searches (#958) 2026-11-11 19:21:06 -07:00
cookies.py Using shared context to sync cookies between processes. 2026-02-22 14:32:27 -07:00
downloader.py A download records the sha256 of its files in the wrolpi section (#904) 2026-10-30 19:34:49 -06:00
errors.py Remove unused code found by vulture (#885) 2026-10-27 15:50:09 -06:00
lib.py A channels.yaml import keeps a Channel's once-Downloads (#898) 2026-10-29 16:59:56 -06:00
models.py Video page: find a Video's neighbors from indexes, not rows (#1062) 2026-12-01 14:31:17 -07:00
normalize_video_url.py A video that is uploaded is attached to its Channel. Saving Channels config with both download url and frequency in case downloads config is corrupted. 2024-10-16 18:56:11 -06:00
schema.py The Any Tag filter works on the Videos, Archives and Docs searches (#958) 2026-11-11 19:21:06 -07:00
transcode.py A transcode or remux refreshes the sha256 sums a download recorded (#906) 2026-10-30 19:41:29 -06:00