mirror of https://github.com/Chocobozzz/PeerTube
Add index for recently added SQL query
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