Add index for recently added SQL query
This commit is contained in:
parent
0dfee3a3ac
commit
611a72ae15
|
@ -149,7 +149,12 @@ const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [
|
|||
buildTrigramSearchIndex('video_name_trigram', 'name'),
|
||||
|
||||
{ fields: [ 'createdAt' ] },
|
||||
{ fields: [ 'publishedAt' ] },
|
||||
{
|
||||
fields: [
|
||||
{ name: 'publishedAt', order: 'DESC' },
|
||||
{ name: 'id', order: 'ASC' }
|
||||
]
|
||||
},
|
||||
{ fields: [ 'duration' ] },
|
||||
{ fields: [ 'views' ] },
|
||||
{ fields: [ 'channelId' ] },
|
||||
|
|
Loading…
Reference in New Issue