Skip to content
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

EXPLAIN no return 'server execution time for query' in 3.0.8 ( like 'elapsed' metric in OrientDB 2.x) #8579

Closed
misu200 opened this issue Oct 4, 2018 · 3 comments
Assignees
Milestone

Comments

@misu200
Copy link

misu200 commented Oct 4, 2018

OrientDB Version: 3.0.8

The query execution time in OrientDB Studio(or console.sh w/remote mode) seems to be computed locally in browser and will roughly be 'server execution time for query' + 'network latency' (RTT)

Many times when working from my personal laptop against cloud hosted OrientDB instance means having network latency for hundreds milliseconds....and for a long time I thought OrientDB is really slow.

EXPLAIN doesn t return the 'elapsed' metric like in OrientDB 2.x

Is there any way to get the 'server execution time for query' in OrientDB?

Thanks

@luigidellaquila
Copy link
Member

Hi @misu200

In v 3.0, EXPLAIN does not execute the query, so it cannot compute the execution time.
Probably we can add some additional info to the JSON response of the normal query execution, let me check, I'll give you a feedback soon

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this Oct 5, 2018
luigidellaquila added a commit that referenced this issue Oct 5, 2018
@luigidellaquila
Copy link
Member

hi @misu200

I added a new attribute to the HTTP response for quesies: elapsedMs. It contains the actual execution time in milliseconds.
I pushed this change to 3.0.x branch, so it will be released with v 3.0.9.
For now, Studio still shows the old "complete" execution time (including the network round trip), but in the near future we will also change it to use the actual execution time. For now you can find the real value in the "raw" tab

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 3.0.9 milestone Oct 5, 2018
@misu200
Copy link
Author

misu200 commented Oct 5, 2018

Thanks a lot @luigidellaquila .
Now one can easily test&optimize OrientDB queries more easy without worrying about network round trip.

@misu200 misu200 closed this as completed Oct 5, 2018
luigidellaquila added a commit that referenced this issue Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants