mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-07 16:27:26 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user