Following #1801 I can still see this kind of query on admin dashboard
SELECT
id
FROM images
LEFT JOIN image_category ON id = image_id
WHERE category_id is null
ORDER BY id ASC
;
(this query time : 7.399 s)
(total SQL time : 7.450 s)
(total time : 7.524 s)
(num rows : 10 )
7.399 seconds is huge. This gallery may have 500k photos, there must be a way to find the number of orphans faster.
Following #1801 I can still see this kind of query on admin dashboard
```
SELECT
id
FROM images
LEFT JOIN image_category ON id = image_id
WHERE category_id is null
ORDER BY id ASC
;
(this query time : 7.399 s)
(total SQL time : 7.450 s)
(total time : 7.524 s)
(num rows : 10 )
```
7.399 seconds is huge. This gallery may have 500k photos, there must be a way to find the number of orphans faster.
<!-- github-sync-id:1499923037 -->
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.
Following #1801 I can still see this kind of query on admin dashboard
7.399 seconds is huge. This gallery may have 500k photos, there must be a way to find the number of orphans faster.