-
Notifications
You must be signed in to change notification settings - Fork 39
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
Simpler entries_by_recent index #330
Labels
Comments
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
lemon24
added a commit
that referenced
this issue
Dec 17, 2023
Turns out "with minimal performance impact" is debatable – Given this testing script: export BENCH_TIME_STAT='min'
sync && sudo purge
python scripts/bench.py time -r10 get_entries_all
sync && sudo purge
python scripts/bench.py time -r20 get_entries_all_page
sync && sudo purge
python scripts/bench.py time -r20 -q andgravity search_entries_recent_all
sync && sudo purge
python scripts/bench.py time -r10 -q query search_entries_recent_all_page Baseline:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on some preliminary tests, the entries_by_recent index can be reduced from 6 fields (everything in the order by) to just
ON entries(recent_sort DESC)
with minimal performance impact.To do:
[ ] simplify entries_by_recent[ ] index[ ] migration[ ] changelogThe text was updated successfully, but these errors were encountered: