https://slingdata.io logo
Sling's `incremental` (or snapshot)
# sling-help
j
Sling's
incremental
(or snapshot) replication mode seems to work differently than dbt's in that the user can't choose any unique key and expect Sling to delete the existing data for the unique key before new data is inserted. Is that right? If so, what's the best way to make Sling behave like dbt's incremental?
f
Yes, choosing "merge strategy" is on the roadmap.
j
Thank you! BTW, when do you plan the next release?
m
But if you choose the primary key, this is what would be done, @flarco or I missing something?
f
@jasono2292 release targeted for this weekend
@marikt94 jasono is referring to how sling merges incremental data. At the moment, it's not flexible if you want to do MERGE or DELETE/INSERT for example, as dbt allows. each connector has a single way (clickhouse DELETE/INSERT, postgres is MERGE ,etc)
m
Hi, just to understand. right now the strategy of sling on postgres incremental mode of stream is insert + update? I noticed from sessions on db query that do join between source table and tmp table and based on thoose do update on target table. I though that right now it is based on delete/insert
m
ok, any eta when we can use delete/insert strategy instead?
f
Hm, not sure. Let me see.
m
Great news, thanks!