Skip to content
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

BulkUpdateAsync taking too much time on tables with Partition #1664

Open
Adnan-Niloy opened this issue Jan 22, 2025 · 0 comments
Open

BulkUpdateAsync taking too much time on tables with Partition #1664

Adnan-Niloy opened this issue Jan 22, 2025 · 0 comments

Comments

@Adnan-Niloy
Copy link

Here is my code:

  var bulkConfig = new BulkConfig
            {
                PropertiesToInclude = propertyNames,
                UpdateByProperties = ["Id", "BranchId"],
                UseTempDB = true,
                SetOutputIdentity = false,
            };
            await _context.BulkUpdateAsync(entities, bulkConfig);

Here Id is the primary key and BranchId is the partitioned column. I am trying to update 3 properties. When I try this on a table with no partition it works fine (I tried with 1000+ data with no issue). However, in this case, where there is a Partition on the table, I tried only with one row to update, but it took too long, resulting in an execution timeout from the db. Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant