File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88)
99
1010const (
11- VERSION = "0.51.0 "
11+ VERSION = "0.51.1 "
1212
1313 ENV_PORT = "BEMIDB_PORT"
1414 ENV_DATABASE = "BEMIDB_DATABASE"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const (
1919 MAX_PG_ROWS_BATCH_SIZE = 1 * 1024 * 1024 // 1 MB
2020 PING_PG_INTERVAL_SECONDS = 24
2121
22- MAX_PARQUET_PAYLOAD_THRESHOLD = 4 * 1024 * 1024 * 1024 // 4 GB (compressed to ~512 MB Parquet)
22+ MAX_PARQUET_PAYLOAD_THRESHOLD = 2 * 1024 * 1024 * 1024 // 2 GB (compressed to ~256 MB Parquet)
2323)
2424
2525type Syncer struct {
@@ -48,7 +48,11 @@ func NewSyncer(config *Config) *Syncer {
4848
4949func (syncer * Syncer ) SyncFromPostgres () {
5050 ctx := context .Background ()
51- syncer .sendAnonymousAnalytics ("sync-start" )
51+ if syncer .config .Pg .IncrementallyRefreshedTables == nil {
52+ syncer .sendAnonymousAnalytics ("sync-start" )
53+ } else {
54+ syncer .sendAnonymousAnalytics ("sync-start-incremental" )
55+ }
5256
5357 databaseUrl := syncer .urlEncodePassword (syncer .config .Pg .DatabaseUrl )
5458 icebergSchemaTables , icebergSchemaTablesErr := syncer .icebergReader .SchemaTables ()
@@ -86,7 +90,11 @@ func (syncer *Syncer) SyncFromPostgres() {
8690 syncer .deleteOldIcebergSchemaTables (syncedPgSchemaTables )
8791 }
8892
89- syncer .sendAnonymousAnalytics ("sync-finish" )
93+ if syncer .config .Pg .IncrementallyRefreshedTables == nil {
94+ syncer .sendAnonymousAnalytics ("sync-finish" )
95+ } else {
96+ syncer .sendAnonymousAnalytics ("sync-finish-incremental" )
97+ }
9098}
9199
92100func (syncer * Syncer ) WriteInternalStartSqlFile (pgSchemaTables []PgSchemaTable ) {
You can’t perform that action at this time.
0 commit comments