[Enhance] Performance optimization

- Change journal mode to WAL and enlarge cache size for sqlite3 database
- Use monkey patch to do asynchrony
- Make gevent use Flask's logger
This commit is contained in:
Lost-MSth
2022-10-31 17:49:19 +08:00
parent 40630fff4d
commit 4da3f38f6e
6 changed files with 28 additions and 15 deletions

View File

@@ -314,4 +314,7 @@ primary key(course_id, item_id, type)
);
create index if not exists best_score_1 on best_score (song_id, difficulty);
create index if not exists download_token_1 on download_token (song_id, file_name);
create index if not exists download_token_1 on download_token (song_id, file_name);
PRAGMA journal_mode = WAL;
PRAGMA default_cache_size = 8000;