diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-23 20:13:30 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:04:05 +0200 |
commit | 8cd72bd37724054f8942f2fefc7aa2e60eca74cf (patch) | |
tree | f2ed8da2a5a804286335156283659e9eaec5291a /server/models/video/video-comment.ts | |
parent | 5bcfd02974389e1a131496d22f4321a79bed0fbb (diff) | |
download | PeerTube-8cd72bd37724054f8942f2fefc7aa2e60eca74cf.tar.gz PeerTube-8cd72bd37724054f8942f2fefc7aa2e60eca74cf.tar.zst PeerTube-8cd72bd37724054f8942f2fefc7aa2e60eca74cf.zip |
Optimize SQL queries
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index f93d81d67..e79aff209 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -108,6 +108,9 @@ enum ScopeNames { | |||
108 | { | 108 | { |
109 | fields: [ 'url' ], | 109 | fields: [ 'url' ], |
110 | unique: true | 110 | unique: true |
111 | }, | ||
112 | { | ||
113 | fields: [ 'accountId' ] | ||
111 | } | 114 | } |
112 | ] | 115 | ] |
113 | }) | 116 | }) |