-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ServerTiming for queries #2964
Conversation
hey @steve-chavez do we need to make postgrest/src/PostgREST/Response.hs Lines 194 to 214 in a6e3eda
|
Hey @develop7, yeah so Hm, maybe it's not that relevant for |
Yeah, so during resource embedding I believe the plan could get slow. If that's true then we might try to optimize the code or cache the results somehow (idea here). But first we would need to confirm if that is indeed the case. |
Might make sense to combine both the |
Gotchu, on it |
Hmm, that means we need to make the I'm wondering if we could get away with something like data ResponseTiming = RMJwt | RMRender | RMDb
data ServerTimings = Map ResponseTiming Double then pass the value of ServerTimings along, throwing metrics' values in as needed; then render the header somewhere near our newly introduced What do you guys think? |
Good point, let me shuffle commits a bit then. |
True.
@develop7 Sounds good! |
f79b359
to
290d906
Compare
Shuffling done, the PR got accidentally closed though |
Roadmap:
db
— database response timerender
— resultset render timeplan
— ❓ ❓ ❓ do we need it? is it worth it? does it get stuck?jwt
— authentication timequoting #2771 (comment):
failNotSingular
, that are impure in nature (they need to rollback), these can be separated into anotherAbortQuery
module.