Improved performance for topics query
Improved performance for replies query