GitHub
12/06/2024, 11:52 PMFULL_TABLE replication mode.
2. A schedule is created after completion of the one-off FULL_TABLE backfill in either INCREMENTAL or LOG_BASED replication mode.
Note: for LOG_BASED in most database engines (MySQL, Postgres etc.) setup is required to enable bin-log decoding before initiating a FULL_TABLE sync, to ensure changes made during the backfill are captured. As a result, some duplication may occur between the time logical decoding is enabled and the backfill begins.
Basic Backfill+
1. A single task runs on selected streams using the FULL_TABLE replication mode with an end_date configured.
2. A schedule is created in either INCREMENTAL or LOG_BASED replication mode with a start_date configured to match the backfill end_date and runs simultaneously with the one-off backfill.
The intention here is that new changes arrive at the same time as historical data is backfilled. For INCREMENTAL streams, the `end_date`/`start_date` can be some arbitrary time in the recent past (say beginning of month/year/quarter). For LOG_BASED, the limiting factor is availability of decoded log files.
Intelligent Backfill
1. A discovery step assesses selected streams (tables) to determine the most effective backfill strategy. 'Small' tables are replicated using a one-off FULL_TABLE task. Large tables are split into multiple tasks, each replicating an equal sized chunk of historical data (partitioned by `start_date`/`end_date` or by range of sequential IDs), in order of newest chunk to oldest (e.g. [2020, 2019, 2018, 2017, ...]).
2. A schedule is created in either INCREMENTAL or LOG_BASED replication mode with a start_date configured to match the backfill end_date and runs simultaneously with the one-off backfill.
The intention here is that not only do new changes arrive whilst historical data is being backfilled, historical data arrives in parallelised chunks ordered from newest to oldest (rather than the default oldest to newest ordering of recovery-compatible FULL_TABLE syncs).
Parallel Sync
Basic Parallelism
• Streams are synced with one-stream-per-task.
Rule-based Parallelism
• Parallelism is determined according to some selection criteria provided by the user, with filter fields that include stream name and replication mode (e.g. all FULL_TABLE syncs grouped, all tables matching customer* in individual jobs etc.)
Melturbo
• Automatic determination of parallelisation strategy, based on an assessment including no. of records in source, avg. no. records transferred per job (over some number of runs?) and the availability of primary and incremental keys (to determine replication mode). This assessment is done periodically by Meltano to remain performant as data volumes change over time.
meltano/meltanoGitHub
12/06/2024, 11:52 PM