parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

How to Debug Indexes

Open jgaull opened this issue 10 years ago • 3 comments

My team and I are super happy with our parse-server hosted on Heroku! We're starting to move forward with new features. This means new queries and new indexes. I have two questions:

  1. How can I view the output of cursor.explain() to debug my queries?
  2. How does parse-server determine the order keys are added to queries? I've read that this is important. Is it the same order that I called functions like equalTo(), greaterThan(), containedIn(), etc?

Thanks for your help.

jgaull avatar Jun 07 '16 01:06 jgaull

I would also like to know the answers to the questions above.

Thanks!

fisterryan avatar Jun 07 '16 20:06 fisterryan

For now you will have to go into the mongo logs directly to find query explanations, as we don't expose these in Parse Server. The key order shouldn't matter.

drew-gross avatar Jun 07 '16 20:06 drew-gross

Thanks @drew-gross! I'll take a look.

jgaull avatar Jun 07 '16 20:06 jgaull