disable GameplayDatabase compression by default
Build and Push Docker Container / build-and-push (push) Successful in 4m19s
Build and Push Docker Container / build-and-push (push) Successful in 4m19s
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
from quart_common.web.env import env_bool
|
||||||
|
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
import asyncio, sqlite3, json, os, logging, sys
|
import asyncio, sqlite3, json, os, logging, sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -26,7 +28,7 @@ class GameplayDatabase:
|
|||||||
)
|
)
|
||||||
connection.row_factory = sqlite3.Row
|
connection.row_factory = sqlite3.Row
|
||||||
|
|
||||||
if _ZSTD_EXT.exists():
|
if _ZSTD_EXT.exists() and not env_bool('DISABLE_GAMEPLAY_DB_COMPRESSION', True):
|
||||||
try:
|
try:
|
||||||
connection.enable_load_extension(True)
|
connection.enable_load_extension(True)
|
||||||
connection.load_extension(str(_ZSTD_EXT))
|
connection.load_extension(str(_ZSTD_EXT))
|
||||||
|
|||||||
Reference in New Issue
Block a user