-
-
Notifications
You must be signed in to change notification settings - Fork 27
Optimize query for ordermethod=lastedit #472
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
Optimize query for ordermethod=lastedit #472
Conversation
This particular order method is trying to get the last edit from the revision table, ordering by timestamp, which is a lot more costly than simply using the page_latest field, which points to the latest revision of the page, and it's a lot cheaper to compute.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pre-release #472 +/- ##
==============================================
Coverage ? 19.51%
Complexity ? 1187
==============================================
Files ? 24
Lines ? 3986
Branches ? 0
==============================================
Hits ? 778
Misses ? 3208
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This particular order method is trying to get the last edit from the revision table, ordering by timestamp, which is a lot more costly than simply using the page_latest field, which points to the latest revision of the page, and it's a lot cheaper to compute.