48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# ============================================================================
|
|
# Krempl PostgreSQL Import - Konfiguration
|
|
# ============================================================================
|
|
#
|
|
# WICHTIG: Kopiere diese Datei zu 'config.ini' und trage deine Credentials ein!
|
|
# cp config.ini.example config.ini
|
|
#
|
|
# Die echte config.ini sollte NICHT ins Git committed werden!
|
|
# (Ist in .gitignore eingetragen)
|
|
#
|
|
# ============================================================================
|
|
|
|
[postgresql]
|
|
host = localhost
|
|
port = 5432
|
|
database = krempl_data
|
|
user = krempl_user
|
|
password = DEIN_POSTGRES_PASSWORT_HIER
|
|
|
|
[csv_files]
|
|
# Pfade zu den CSV-Export-Dateien (vom Server)
|
|
geraete = /var/www/vhosts/intelectra.de/httpdocs/upload/geraete_Export.csv
|
|
artikel = /var/www/vhosts/intelectra.de/httpdocs/upload/artikel_Export.csv
|
|
mapping = /var/www/vhosts/intelectra.de/httpdocs/upload/artikelgeraet_Export.csv
|
|
passendwie = /var/www/vhosts/intelectra.de/httpdocs/upload/passendwie_Export.csv
|
|
|
|
[import_settings]
|
|
# Batch-Größe für Inserts (höher = schneller, aber mehr RAM)
|
|
batch_size_geraete = 1000
|
|
batch_size_artikel = 1000
|
|
batch_size_passendwie = 1000
|
|
batch_size_mapping = 500
|
|
|
|
# Mapping-Import: In-Memory aggregieren oder Stream-Mode?
|
|
# true = Lädt alle 61M Zeilen in RAM (schneller, braucht ~8GB RAM)
|
|
# false = Stream-Mode (langsamer, braucht wenig RAM)
|
|
mapping_in_memory = true
|
|
|
|
# Fortschritts-Anzeige alle X Zeilen
|
|
progress_interval = 100000
|
|
|
|
[logging]
|
|
# Log-Level: DEBUG, INFO, WARNING, ERROR
|
|
log_level = INFO
|
|
|
|
# Log-Datei (optional, leer = nur Console)
|
|
log_file =
|