-
Notifications
You must be signed in to change notification settings - Fork 0
/
sslr.json
53 lines (41 loc) · 1.85 KB
/
sslr.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"/* Connection URLS ":"*/",
"source": "postgres://postgres:super-secret@localhost:2345/test?default_transaction_read_only=true",
"target": "postgres://postgres:super-secret@localhost:2345/sslr",
"/* List of tables to sync ":"*/",
"tables": [
"timestamps"
],
"/* Everything below is optional ":"*/",
"/* Filtered tables, with 'where' clause ":"*/",
"/* If the 'where' clause depends on other tables, they need to be specified in the 'uses' list ":"*/",
"filteredTables": {
"strings": {
"where": "exists (select count(*) from timestamps)",
"/* long 'where' statements can be split into multiple lines using the 'wheres' array ":"*/",
"wheres": [],
"uses": [
"timestamps"
]
}
},
"/* New or updated rows will be applied using this chunk size ":"*/",
"updateChunkSize": 10000,
"/* Source table will be scanned for deleted rows starting at this chunk size ":"*/",
"deleteChunkSize": 50000,
"/* Chunk size for when to stop divide and conquer while scanning for deleted rows ":"*/",
"/* This is also the chunk size used for applying changes due to deletions ":"*/",
"minDeleteChunkSize": 250,
"/* Max source database utilization as a percentage of total execution time ":"*/",
"throttlePercentage": 75,
"/* Full table copy will be performed when target table has less than (fullCopyThreshold * source_rows) rows ":"*/",
"fullCopyThreshold": 0.5,
"/* Sync added and updated rows ":"*/",
"syncUpdates": true,
"/* Sync deleted rows ":"*/",
"syncDeletes": true,
"/* Perform full table copy instead of exiting when schema changes are detected ":"*/",
"resyncOnSchemaChange": false,
"/* Name of SSLR state table in the target database":"*/",
"stateTable": "__sslr_state"
}