Skip to content

BQ sink produces sample of successful inserts - #875

Merged
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
pyalex:sample-bq-output
Jul 13, 2020
Merged

BQ sink produces sample of successful inserts#875
feast-ci-bot merged 2 commits into
feast-dev:masterfrom
pyalex:sample-bq-output

Conversation

@pyalex

@pyalex pyalex commented Jul 13, 2020

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Output of BQ batch insert is now sample from all inserted rows.

Which issue(s) this PR fixes:

Currently BQ's successful inserts produces all rows that were in batch. In some use-cases like batch ingestion it could produce up to 30k / sec rows (or ~5 M rows in batch for the default flush frequency (3m)). This output is used in metrics where whole batch (with 5M rows) is grouped into single list, which requires it to fit into memory of one machine. This can lead to memory issues.

I suspect that this is overkill since metrics can be easily calculated from sample of inserted data instead of whole batch. This PR changes BQ successful inserts to output only sample of inserted data.

Does this PR introduce a user-facing change?:


@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pyalex, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop

woop commented Jul 13, 2020

Copy link
Copy Markdown
Member

/retest

@pyalex
pyalex force-pushed the sample-bq-output branch from 810f59e to 95ca756 Compare July 13, 2020 10:50
@woop

woop commented Jul 13, 2020

Copy link
Copy Markdown
Member

/lgtm

@feast-ci-bot
feast-ci-bot merged commit 2327b29 into feast-dev:master Jul 13, 2020
pyalex pushed a commit to pyalex/feast that referenced this pull request Jul 17, 2020
* feature row batch produces sample

* lint

Co-authored-by: Willem Pienaar <git@willem.co>
pyalex pushed a commit that referenced this pull request Jul 17, 2020
* feature row batch produces sample

* lint

Co-authored-by: Willem Pienaar <git@willem.co>
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.

3 participants