Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Get sortable_fields from index only if criteria present in query #335

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

shekhirin
Copy link
Contributor

Seems like we don't need to retrieve sortable_fields from the index if there's no any sort_criteria in the query.

Small 🤏 optimization opportunity out there.

@shekhirin shekhirin force-pushed the lazy-sortable-fields branch 2 times, most recently from e818342 to 4f7e357 Compare August 31, 2021 18:34
@shekhirin shekhirin force-pushed the lazy-sortable-fields branch from 4f7e357 to 0e37955 Compare August 31, 2021 18:35
@shekhirin shekhirin changed the title Get sortable_fields from index only if criteria present Get sortable_fields from index only if criteria present in query Sep 1, 2021
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM 🚀
bors merge

@bors
Copy link
Contributor

bors bot commented Sep 1, 2021

@bors bors bot merged commit a589f6c into meilisearch:main Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants