mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add index for recently added SQL query
This commit is contained in:
@@ -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' ] },
|
||||
|
||||
Reference in New Issue
Block a user