Set WantMassQuery: 1 on newly created binary caches #810

Open
opened 2025-04-26 20:43:19 +00:00 by jade · 4 comments
Owner

Not setting this is a footgun that makes query performance very bad. We should just fix it. See issues like the-distro/infra#201

Perhaps we should also remove it altogether and always assume it, but there may be some reason it shouldn't always be done?? Unclear. Surely if that is the case then the people who want slow path querying could set it as some per-substituter setting.

~~Not setting this is a footgun that makes query performance very bad. We should just fix it. See issues like https://git.lix.systems/the-distro/infra/issues/201~~ Perhaps we should also remove it altogether and always assume it, but there may be *some* reason it shouldn't always be done?? Unclear. Surely if that is the case then the people who want slow path querying could set it as some per-substituter setting.
jade self-assigned this 2025-04-26 20:43:19 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/3063 ("store: WantMassQuery by default")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/3063", "number": 3063, "kind": "commit message"}], "cl_meta": {"3063": {"change_title": "store: WantMassQuery by default"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/3063](https://gerrit.lix.systems/c/lix/+/3063) ("store: WantMassQuery by default")
Author
Owner

wait a minute. am i stupid? this does seem to only affect querySubstitutablePaths which is basically not used. ughhhh

wait a minute. am i stupid? this does seem to only affect querySubstitutablePaths which is basically not used. ughhhh
Owner

yeah, it's just like. nix-store and nix-env flags that use it, iirc. I'd be tempted to just remove the distinction; nix is already expensive (in request count) on substituters anyhow

yeah, it's just like. `nix-store` and `nix-env` flags that use it, iirc. I'd be tempted to just remove the distinction; nix is already expensive (in request count) on substituters anyhow
Author
Owner

yeah. okay. so we actually mostly do not care and we could delete the whole thing. then my substituter query concurrency problem is in another castle...

yeah. okay. so we actually mostly do not care and we could delete the whole thing. then my substituter query concurrency problem is in another castle...
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#810
No description provided.