Add index on (libraryId, mediaType, createdAt)

This commit is contained in:
mikiher 2025-02-08 14:53:01 +02:00
parent a13143245b
commit 3d08a35aa0

View File

@ -701,6 +701,9 @@ class LibraryItem extends Model {
{
fields: ['libraryId', 'mediaType', 'size']
},
{
fields: ['libraryId', 'mediaType', 'createdAt']
},
{
fields: ['libraryId', 'mediaType', { name: 'title', collate: 'NOCASE' }]
},