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

Please support explain clause #28

Closed
SergeAx opened this issue Jan 2, 2021 · 4 comments
Closed

Please support explain clause #28

SergeAx opened this issue Jan 2, 2021 · 4 comments

Comments

@SergeAx
Copy link
Contributor

SergeAx commented Jan 2, 2021

First of all, thank you for a great tool! Glad to see it under active development.

I think that it really needs to support "explain", to answer a frequent question "willl this request use my indexes?" and solving other performance-related problems.

I see it as an easy update to .js and can make a pull request, if you like the idea.

@feliixx
Copy link
Owner

feliixx commented Jan 3, 2021

Hi @SergeAx ,

indeed it would be very useful, however indexes are currently not supported in the playground right now ( see #25 )
I'd like to add support for index before doing this, but I don't know how to do it yet

If you're interested in working on this, you're welcome !

@SergeAx
Copy link
Contributor Author

SergeAx commented Jan 3, 2021

#31

@feliixx
Copy link
Owner

feliixx commented Jan 4, 2021

I'll try to implement this soon, now that indexes are supported!

This requires some change in the front-end. It' might not be trivial, but feel free to give it a try if you want !

feliixx added a commit that referenced this issue Jan 12, 2021
folowing queries are now valid:

db.collection.find().explain()
db.collection.explain().find()
db.collections.explain("executionStats").find()

closes #28
@feliixx
Copy link
Owner

feliixx commented Jan 14, 2021

@SergeAx it should work fine now: https://mongoplayground.net/p/A-tyGh5-XU7

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

No branches or pull requests

2 participants