snowplow / snowplow-rdb-loader

Stores Snowplow enriched events in Redshift, Snowflake and Databricks
Other
31 stars 17 forks source link

Batch transformer: use singleton badrows sink #1274

Closed pondzix closed 1 year ago

pondzix commented 1 year ago

Currently we create bad sink for every partition here. We could improve this by creating only one instance of a bad sink (per worker node) in the singleton object and reuse it while mapping partitions. Similar approach to e.g. iglu resolver singleton.