Answer by Gordon Linoff for ORDER BY optimization for a large table
This is your query:SELECT idFROM `posts` WHERE user_id =123529745 and source=1 and visible=1ORDER BY created DESCYou are doing only equality comparisons in the where and then sorting by created.A...
View ArticleORDER BY optimization for a large table
I am currently aggregating posts from different social networks. Currently I have 50-100 million posts from Facebook, Twitter, Youtube, Instagram , Pinterest. Consider a table postsposts{ id int(11),...
View Article
More Pages to Explore .....