diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-29 16:26:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-30 15:03:18 +0200 |
commit | 6b6168606bc86430f6b7821c9d5f1c80d0425ebf (patch) | |
tree | 9aea6cf0875c9fee30c373eb4924b12d47d1e23c /server/initializers/database.ts | |
parent | 2d9fea161fd4fc73994fc77951bafdccdc2071fd (diff) | |
download | PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.gz PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.zst PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.zip |
Bufferize videos views in redis
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 0be752363..78bc8101c 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -25,6 +25,7 @@ import { CONFIG } from './constants' | |||
25 | import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' | 25 | import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' |
26 | import { VideoCaptionModel } from '../models/video/video-caption' | 26 | import { VideoCaptionModel } from '../models/video/video-caption' |
27 | import { VideoImportModel } from '../models/video/video-import' | 27 | import { VideoImportModel } from '../models/video/video-import' |
28 | import { VideoViewModel } from '../models/video/video-views' | ||
28 | 29 | ||
29 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 30 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
30 | 31 | ||
@@ -83,7 +84,8 @@ async function initDatabaseModels (silent: boolean) { | |||
83 | VideoModel, | 84 | VideoModel, |
84 | VideoCommentModel, | 85 | VideoCommentModel, |
85 | ScheduleVideoUpdateModel, | 86 | ScheduleVideoUpdateModel, |
86 | VideoImportModel | 87 | VideoImportModel, |
88 | VideoViewModel | ||
87 | ]) | 89 | ]) |
88 | 90 | ||
89 | // Check extensions exist in the database | 91 | // Check extensions exist in the database |