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

Mongo breadcrumb: Add "sort" field #798

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Oct 19, 2023

Goal

Add "sort" field to breadcrumb for MongoDB queries. Sort can have significant bearing on index selection/performance, and its very useful to see.

Design

The implementation mirrors how the "filter" field is captured today. Unlike filters, we don't need to mask the values because they can only be 1 or -1.

Changeset

The Mongo breadcrumb functionality only.

This also includes the changes from #797 b/c I cannot commit from my Windows machine otherwise.

Testing

Tested in RSpec and by TableCheck in production.

@johnnyshields johnnyshields changed the title Add "sort" field to Mongo breadcrumb Mongo breadcrumb: Add "sort" field Oct 19, 2023
@clr182
Copy link

clr182 commented Oct 19, 2023

Hi @johnnyshields
Thanks for raising this PR. We will be sure to take a look when priority allows us.

@clr182 clr182 added feature request Request for a new feature backlog We hope to fix this feature/bug in the future labels Oct 19, 2023
@johnnyshields
Copy link
Contributor Author

Here is evidence of this working:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants