[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

@@ -12,8 +12,8 @@ class Connect:
def __init__(self, file_path=Constant.SQLITE_DATABASE_PATH):
"""
数据库连接默认连接arcaea_database.db\
接受:文件路径\
数据库连接默认连接arcaea_database.db\
接受:文件路径\
返回sqlite3连接操作对象
"""
self.file_path = file_path