Closed elexisvenator closed 2 months ago
I also have an extension of this branch that changes the logic to use a single insert .. on conflict do update
to make the merge quicker.
Another bug that I haven't addressed as its more programmer error: There are no checks in place to ensure that a tenant is specified when the bulk imported document uses conjoined tenancy. Tenancy defaults to default but given how low level this op is it's probably worth requiring the use of default tenant to be explicit.
This fixes 2 issues:
Also has a small tweak to calling binay import to use the async method where appropriate.