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

making everything less chatty #525

Open
Spirch opened this issue Apr 17, 2021 · 1 comment
Open

making everything less chatty #525

Spirch opened this issue Apr 17, 2021 · 1 comment

Comments

@Spirch
Copy link

Spirch commented Apr 17, 2021

for every table there is seven EF queries sent, in a case of SetOutputIdentity = true which include IncludeGraph = true

  1. create table
  2. create output table
  3. alter columns
  4. merge to destination table
  5. select to retrieve the identity
  6. delete table
  7. delete output table

for a single table, this could be reduced, looking at the adapter code, it might be a matter of collecting the sql query and concatenating them together in a way that make sense to execute in batch

next issue about this is if there is a lot of tables, that series of query will be execute for each table, so if there is 100 tables, there will be 700 execute queries, if all the queries can be done in batch / grouped together it would reduce the chattyness of the bulk process

@maitlandmarshall
Copy link
Contributor

Looking into this.

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

No branches or pull requests

3 participants