Add Popular Posts feature and improve query performance