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

use a single transaction for each generation when importing data from a file #18606

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

altendky
Copy link
Contributor

@altendky altendky commented Sep 19, 2024

Purpose:

Improve runtime of insertion to the datalayer db from dat files. This occurs when syncing a new update, for example.

many transactions - full file: 3.6s
one transaction - full file: 2.2s

many transactions - delta file: 0.97s
one transaction - delta file: 0.49s

Current Behavior:

New Behavior:

Testing Notes:

@altendky altendky requested a review from a team as a code owner September 19, 2024 14:34
@altendky altendky added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Sep 19, 2024
@arvidn
Copy link
Contributor

arvidn commented Sep 19, 2024

perhaps I jumped the gun; but it would be nice to have some rationale in the description. did you measure any difference?

@altendky altendky marked this pull request as draft September 19, 2024 14:42
@altendky
Copy link
Contributor Author

I did, and was discussing with Earle. (or sending messages to be discussed when they wake up :]) But yes, having info here would be good as well. Thanks.

@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Sep 30, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog merge_conflict Branch has conflicts that prevent merge to main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants