"""Configurazione della sorgente MongoDB per download_images.py."""

# Esempio locale: mongodb://utente:password@127.0.0.1:27017/
# Esempio Atlas:  mongodb+srv://utente:password@cluster.example.mongodb.net/
MONGODB_URI = "mongodb://localhost:27017/"

MONGODB_DATABASE = "plateform"
MONGODB_COLLECTION = "structures"
IMAGES_FIELD = "gallery"
DOCUMENT_SLUG_FIELD = "slug"
DOCUMENT_NAME_FIELD = "name"

# Tempo massimo per stabilire la connessione al database.
MONGODB_TIMEOUT_MS = 10000

# Lettura MongoDB e download concorrenti. Iniziare con 8 worker e aumentare
# gradualmente soltanto se server e sorgenti delle immagini lo consentono.
MONGODB_BATCH_SIZE = 500
DOWNLOAD_WORKERS = 8
MAX_PENDING_DOWNLOADS = 32
