Logging memory usage on media fetch.

This commit is contained in:
DebaucheryLibrarian
2021-12-27 17:29:23 +01:00
parent 0ad64ef5f4
commit 299f257a01
5 changed files with 16 additions and 22 deletions

View File

@@ -249,7 +249,8 @@ async function fetchLatest(entity, page, options) {
.where('is_sfw', true)
.pluck('path')
.orderByRaw('random()')
.limit(Math.floor(Math.random() * 10) + 1);
// .limit(Math.floor(Math.random() * 10) + 1)
.limit(100);
// const poster = 'sfw/kittens/thumbs/iNEXVlX-RLs.jpeg';