Quantcast
Channel: ORDER BY optimization for a large table - Database Administrators Stack Exchange
Browsing latest articles
Browse All 2 View Live

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 Article



ORDER 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
Browsing latest articles
Browse All 2 View Live




Latest Images