You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error you get from the batch import when one identity conflicts does not specify which one caused the conflict.
Describe your ideal solution
A list of identities that cannot be imported, optionally importing all others that do not conflict.
Workarounds or alternatives
Implementing a search on which identity/identities fails to import. This is a lot of unnecessary work.
Version
latest
Additional Context
POC:
createtablet (i intprimary key);
with
-- define values
v (i, external_id) as (values (1, '1x'), (2, '2x'), (3, '3x')),
-- insert all non-conflicting values
tt as (
insert into t (i)
(select i from v)
on conflict do nothing
returning i
)
-- get all values including the external ID for identification, and see which ones were insertedselectv.i, v.external_id, tt.i is nullas ignored_because_conflict
from v
left join tt onv.i=tt.i;
The text was updated successfully, but these errors were encountered:
Preflight checklist
Ory Network Project
No response
Describe your problem
The error you get from the batch import when one identity conflicts does not specify which one caused the conflict.
Describe your ideal solution
A list of identities that cannot be imported, optionally importing all others that do not conflict.
Workarounds or alternatives
Implementing a search on which identity/identities fails to import. This is a lot of unnecessary work.
Version
latest
Additional Context
POC:
The text was updated successfully, but these errors were encountered: