summaryrefslogtreecommitdiffstats
path: root/src/hash.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-18 18:28:16 +0000
committeraur-build <aur-build@localhost>2026-11-18 18:28:16 +0000
commitfdd004c50de6131be193044ae40424d691425a81 (patch)
tree87f3ce369f943d6ac077b7af1252850d86082422 /src/hash.rs
parent2a8ce53f6754217c8e24f92a7b13190b68708d7a (diff)
downloadaur-build-fdd004c50de6131be193044ae40424d691425a81.tar.gz
aur-build-fdd004c50de6131be193044ae40424d691425a81.zip
db, watch: two N+1s and a version rule with one owner
m-17. `watch::staleness::dependents_of` walked the index and asked for each package's recipe by name — one query per package, on the path that runs after every publish, with N equal to the size of the index. `db::index_recipes` returns the whole table in one query now. While there: a recipe that fails to parse is no longer treated as "does not depend on this package". An unreadable srcinfo used to hide a dependent from staleness by returning `None` into an `unwrap_or(false)`; now it is a reason to look. `db::builds::requeue_blocked` asked "is this name in the index?" once per dependency of every blocked build, inside the dispatcher's hot loop. The set of in-index names is read once per pass and tested in memory. Same answer, one query. m-18. `approved_but_unbuilt` assembled the version a human reads with two `CASE WHEN epoch='0'` expressions in SQL — a second, independent copy of the `epoch:pkgver-pkgrel` rule that `pkgver::full_version` owns. Two copies of a formatting rule is how the Attention page ends up describing versions differently from every other page. The query returns the parts; Rust formats them. A guard test fails if version-string concatenation reappears in SQL.
Diffstat (limited to 'src/hash.rs')
0 files changed, 0 insertions, 0 deletions