-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
The dolt sql-client query timings always show 0.00 sec #5241
Comments
Do you mind sharing the exact command line? For instance, when trying to repro:
No timing information. |
Oh, I guess when I ues sql-client it's always for the interactive session via So my workflow was:
Estimated real time was averaging roughly 500ms, maybe a bit less. |
OK. Great. I can repro. Should be an easy fix. |
Hi @dphil, I tried to repro and couldn't see the same thing. I followed the steps above and got a
To clarify, is the bug you're seeing that the duration being displayed isn't accurate (i.e. you expect a time of 0.5 sec but are seeing 0 sec) or is it that all queries are displaying 0.00 sec regardless of the actual time it took to run? |
Hm, actually you're right, I am seeing non-zero times displayed for other long-running queries.
This query appears to take roughly 0.5s to run, but reports 0.00 sec. @timsehn this is the one we spoke about with a collation-related performance hit. |
Hi @dphil, I investigated some more and I think I understand what the issue is now. It seems like we're printing out the time to print results instead of the actual time of the query. For example, |
Hi @dphil, query timing should be working as expected now, displaying the time to execute a query. Let me know if you notice any further issues with this. Thanks! |
I'm running some queries (
select
statements) that ostensibly take around 0.5-1 second to run, but the sql-client always reports a query time of 0.00 sec.Using dolt 0.52.13, but as far as I know it's always been this way.
The text was updated successfully, but these errors were encountered: