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'),
|
buildTrigramSearchIndex('video_name_trigram', 'name'),
|
||||||
|
|
||||||
{ fields: [ 'createdAt' ] },
|
{ fields: [ 'createdAt' ] },
|
||||||
{ fields: [ 'publishedAt' ] },
|
{
|
||||||
|
fields: [
|
||||||
|
{ name: 'publishedAt', order: 'DESC' },
|
||||||
|
{ name: 'id', order: 'ASC' }
|
||||||
|
]
|
||||||
|
},
|
||||||
{ fields: [ 'duration' ] },
|
{ fields: [ 'duration' ] },
|
||||||
{ fields: [ 'views' ] },
|
{ fields: [ 'views' ] },
|
||||||
{ fields: [ 'channelId' ] },
|
{ fields: [ 'channelId' ] },
|
||||||
|
|
Loading…
Reference in New Issue