Open sdevkc opened 11 months ago
There is no current built-in support for conflicting elements. Doesn't it simply mean you are trying to insert twice the same (slot,program_id)
?
Yes, for my table there are other columns but some table might change while the indexer is running so conflicts could happen.
We are in a similar boat, it would be nice to have an upsert option for rows. On conflict set ... for instance.
How would you express that in the DatabaseChanges model? Specify the things to set, the operation to run, on conflict? With a set-only approach, we can do high speed inserts through COPY FROM, if we start enabling operations,, hmmm . Might change the possibilities
When inserting data with unique constraints it throws an error.
For example when
slot
andprogram_id
is not unique:Is there an option for handling conflicts? E.g.,