improve mainlist performance
timbowhite opened this issue · comments
Timbo White commented
Some of the filters on the mainlist are very slow due to having to count millions of rows. This can be fixed by:
- running the count query async
- running the data query
- once data query completes, send data back to client
- display a "counting domains..." on the UI while we wait for the count query to finish
- poll for the count query results, and display the "XXX domains" on the UI once count query completes
Timbo White commented
Significant performance improvements have been made to the queries on the site.
For now, I don't think it's necessary to run & poll the count queries async.
I'll continue to monitor slow queries. If count query performance degrades and cannot be improved, this tactic will be reconsidered.