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
order: metatags aren't indexed. #3000
Comments
For now I'll remove the secondary sort and see how it impacts searches in practice. |
Uh, for |
So |
Fix #3000: order: metatags aren't indexed.
These
order:
metatags are prone to timing out for Members:order:change
order:comment
order:comment_bumped
order:note
order:mpixels
order:portrait
order:landscape
The problem is these things order by
posts.field desc, posts.id desc
, but the indexes are all single column. Either the indexes need to be multicolumn, or the queries need to drop the secondaryposts.id desc
order clause.Timestamp based orderings could probably get away with dropping
posts.id desc
. The ordering would be unstable for two posts updated at the same time, but in practice that's probably rare.For orderings based on width/height or filesize, collisions are probably more common so multicolumn indexes may be more necessary.
The text was updated successfully, but these errors were encountered: