With more hundreds of thousands photos, calculating the number of orphan photos, performed on each admin page, is slow:
SELECT
id
FROM images
LEFT JOIN image_category ON id = image_id
WHERE category_id is null
ORDER BY id ASC
;
(this query time : 1.862 s)
We may not need to calculate this on each page, every second...
With more hundreds of thousands photos, calculating the number of orphan photos, performed on each admin page, is slow:
```
SELECT
id
FROM images
LEFT JOIN image_category ON id = image_id
WHERE category_id is null
ORDER BY id ASC
;
(this query time : 1.862 s)
```
We may not need to calculate this on each page, every second...
<!-- github-sync-id:1459556238 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
With more hundreds of thousands photos, calculating the number of orphan photos, performed on each admin page, is slow:
We may not need to calculate this on each page, every second...