Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Per-query metrics #708

Open
psarna opened this issue Sep 27, 2023 · 0 comments
Open

Per-query metrics #708

psarna opened this issue Sep 27, 2023 · 0 comments

Comments

@psarna
Copy link
Contributor

psarna commented Sep 27, 2023

After each query, we collect information about its rows read and rows written, and use it to bump our global metrics. We should also consider extending our protocol so that we return those values to the user as well. That would help users optimize queries, since they'd be able to compare which queries cost how many units.

That would make responses larger though, so it can affect throughput, esp. for small responses, so perhaps this mode should be opt-in, used only for query planning and debugging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant