wrolpi/modules/videos/channel
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
..
test Search estimates and channel suggestions do not read every large row (#1092) 2026-12-03 20:36:24 -07:00
__init__.py A new start 2021-11-01 16:43:09 -06:00
api.py Channel and map subscription changes wait for a concurrent writer (#851) 2026-10-21 16:48:52 -06:00
lib.py Search estimates and channel suggestions do not read every large row (#1092) 2026-12-03 20:36:24 -07:00