feat(db): optimize SQLite settings for improved performance
This commit is contained in:
4 files changed
+53
No files matched your search
@@ -16,6 +16,17 @@ DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": BASE_DIR / "db.sqlite3",
|
||||
"OPTIONS": {
|
||||
"transaction_mode": "IMMEDIATE",
|
||||
"timeout": 5, # seconds
|
||||
"init_command": """
|
||||
PRAGMA journal_mode=WAL;
|
||||
PRAGMA synchronous=NORMAL;
|
||||
PRAGMA mmap_size = 134217728;
|
||||
PRAGMA journal_size_limit = 27103364;
|
||||
PRAGMA cache_size=2000;
|
||||
""",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
ℹ
|
||||
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
Django App Creation
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
|
||||
ℹ
|
||||
✗ App creation is not supported for Single
|
||||
Folder Structure projects.
|
||||
This structure is designed to be a single-app
|
||||
project.
|
||||
✗ Failed to create Django app 'testapp'
|
||||
@@ -0,0 +1,14 @@
|
||||
ℹ
|
||||
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
Django App Creation
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
|
||||
ℹ
|
||||
✓ Created Django app 'testapp' in
|
||||
/home/sankalp/Projects/djinit/test_standard
|
||||
✗ Could not find USER_DEFINED_APPS section in
|
||||
base.py
|
||||
✗ Failed to create Django app 'testapp'
|
||||
@@ -0,0 +1,14 @@
|
||||
ℹ
|
||||
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
Django App Creation
|
||||
═════════════════════════════════════════════
|
||||
═════════════════════════
|
||||
|
||||
ℹ
|
||||
✗ App creation is not supported for Unified
|
||||
Structure projects.
|
||||
Please manually create your app in 'apps/'
|
||||
and register it in 'core/settings/base.py'.
|
||||
✗ Failed to create Django app 'testapp'
|
||||
Reference in new issue
Block a user