-
-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BulkInsertOrUpdateAsync fails for Postgres when unique index required #1638
Comments
Glad it's useful. |
I find it interesting that he still creates a unique index when the table's unique index exists. In the case of very large data volumes, the cost of creating unique indexes is huge. Is it possible to disable the automatic creation of unique indexes? |
I found out that it is the following SQL, which does not find the unique index that already exists.
|
@borisdj, do I need to be added as a contributor? I don't have the option to create a branch. |
Hi, no, you need to create a Fork, then ones you do a commit, make a PR. |
PR merged, thx for contrib. |
First of thank you for all the great work you guys do on this library.
So the issue I've experienced is using the
BulkInsertOrUpdateAsync
extension method and supplying update properties in theBulkConfig
. When executed the action fails with the below error:I've created the below small program that replicates the issue:
Using this I've diagnosed the issue and the two below are contributing:
I've also got a solution for this and would love to raise a PR but sharing here first as per the contributing guidelines.
The text was updated successfully, but these errors were encountered: