Daily Shaarli

All links of one day in a single page.

June 18, 2024

Optimal SQLite settings for Django – Giovanni Collazo
thumbnail

Des réglages "optimaux" (je n'ai pas vérifié) pour configurer une DB SQLite pour une application #django :

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": BASE_DIR / "db.sqlite3",
        "OPTIONS": {
            "init_command": (
                "PRAGMA foreign_keys=ON;"
                "PRAGMA journal_mode = WAL;"
                "PRAGMA synchronous = NORMAL;"
                "PRAGMA busy_timeout = 5000;"
                "PRAGMA temp_store = MEMORY;"
                "PRAGMA mmap_size = 134217728;"
                "PRAGMA journal_size_limit = 67108864;"
                "PRAGMA cache_size = 2000;"
            ),
            "transaction_mode": "IMMEDIATE",
        },
    },
}
EbookFoundation/free-programming-books · GitHub
thumbnail

Une liste d'ebooks libres sur la programmation #dev