Небольшие изменения

This commit is contained in:
brusnitsyn
2026-05-29 06:47:29 +09:00
parent 7a13ff3b74
commit ff810e59bc
4 changed files with 284 additions and 88 deletions

View File

@@ -100,6 +100,8 @@ class Config:
# Настройки миграции
CHUNK_SIZE = int(os.getenv('CHUNK_SIZE', '5000'))
WRITE_CHUNK_SIZE = int(os.getenv('WRITE_CHUNK_SIZE', str(CHUNK_SIZE)))
INCREMENTAL_CHUNK_SIZE = int(os.getenv('INCREMENTAL_CHUNK_SIZE', str(CHUNK_SIZE * 2)))
FULL_LOAD_CHUNK_SIZE = int(os.getenv('FULL_LOAD_CHUNK_SIZE', str(CHUNK_SIZE * 4)))
BATCH_SIZE = 10 # Через сколько чанков выводить прогресс
REPLICATOR_SCHEMA = os.getenv('REPLICATOR_SCHEMA', 'replicator')
STATE_TABLE = 'migration_state'