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

vdk-oracle: Pass ingestion payload rows in uniform batches #3194

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

DeltaMichael
Copy link
Contributor

Why?

The current ingestion implementation batches payload rows by column keyset. Payloads with the same keyset are batched together and passed to an executemany() call. This is not ideal becauase it can result in a large number of executemany() calls

What?

Make each payload row uniform by identifying missing columns and filling them out with null values.
Pass data rows to executemany() in uniform batches.

How was this tested?

Functional tests

What kind of change is this?

Feature/non-breaking

@DeltaMichael DeltaMichael force-pushed the person/mdilyan/oracle-uniform-batches branch from 091b618 to 679b21d Compare March 12, 2024 10:51
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/oracle-uniform-batches branch 2 times, most recently from b0a36bd to da46bea Compare March 15, 2024 15:21
Copy link
Contributor

@yonitoo yonitoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one concern.

@DeltaMichael DeltaMichael force-pushed the person/mdilyan/oracle-uniform-batches branch 2 times, most recently from b0405a9 to ec3a18f Compare March 22, 2024 10:11
@DeltaMichael DeltaMichael enabled auto-merge (squash) March 22, 2024 10:12
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/oracle-uniform-batches branch from ff0934c to eb1bf5e Compare March 22, 2024 15:30
Why?

The current ingestion implementation batches payload rows by column keyset.
Payloads with the same keyset are batched together and passed to an executemany() call.
This is not ideal becauase it can result in a large number of executemany() calls

What?

Make each payload row uniform by identifying missing columns and filling them out with
null values.
Pass data rows to executemany() in uniform batches.

How was this tested?

Functional tests

What kind of change is this?

Feature/non-breaking

Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/oracle-uniform-batches branch from eb1bf5e to 667e4c6 Compare March 22, 2024 15:31
@DeltaMichael DeltaMichael merged commit 7ccea04 into main Mar 22, 2024
8 checks passed
@DeltaMichael DeltaMichael deleted the person/mdilyan/oracle-uniform-batches branch March 22, 2024 15:45
yonitoo pushed a commit that referenced this pull request Mar 26, 2024
## Why?

The current ingestion implementation batches payload rows by column
keyset. Payloads with the same keyset are batched together and passed to
an executemany() call. This is not ideal becauase it can result in a
large number of executemany() calls

## What?

Make each payload row uniform by identifying missing columns and filling
them out with null values.
Pass data rows to executemany() in uniform batches.

## How was this tested?

Functional tests

## What kind of change is this?

Feature/non-breaking

---------

Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
Co-authored-by: Dilyan Marinov <mdilyan@vmware.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vdk-oracle: optimize batching of payload rows with different keysets
5 participants