AtlasOfLivingAustralia / image-service

Image repository and tiling services
https://images.ala.org.au
0 stars 17 forks source link

Admin dashboard image count takes a long time to run #142

Closed sbearcsiro closed 3 years ago

sbearcsiro commented 3 years ago

Any time an admin hits the admin dashboard page it triggers two count(*) on the Image table which are slow because the Image table is large and Postgres count()s are slow on large tables. This issue is exacerbated by the dashboard reloading the image counts every 5 seconds.

Suggest making the image counts a manual load that do not refresh automatically.