Settings

Theme

Tuning MySQL and the Ghost of Index Merge Intersection

developers.mattermost.com

3 points by agnivade 5 years ago · 1 comment

Reader

ammyinsane 5 years ago

Don't have this in your query/app: "AND DeleteAt = 0"

If your app must depend on that,put the delete posts in a deletepostsID table and do a join.

IIRC its because mysql queries can only use one index at a time (per table) and any type of binary/enums/ 0 /null tables will always force a full table scan regardless of indexes

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection