-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary Fixes #1467 ### Time to review: __10 mins__ ## Changes proposed Added the ability to order_by several more fields Updates to test structure, continuing a pattern from the parent PR ## Context for reviewers Except for relevancy (which is its own separate ticket if we do it prior to a search index), this should cover all the sorting needs for search in the near term. One callout is that sorting always shoves null values to the end now, regardless of whether they are ascending or descending (by default, Postgres considers null to be the largest value). ## Additional information Did some local testing of performance with the queries we actually use, and sorting by any of these fields has effectively the same performance cost, and adding an index to the un-indexed ones didn't seem to change that. --------- Co-authored-by: nava-platform-bot <platform-admins@navapbc.com>
- Loading branch information
1 parent
fb33b83
commit 4686472
Showing
5 changed files
with
340 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.