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

test stream ingestion PR for diffing #1

Closed
wants to merge 2 commits into from

Conversation

adchia
Copy link
Owner

@adchia adchia commented Dec 6, 2021

What this PR does / why we need it:

Adds timestamp checking for stream ingestion in datastore + SQL. Begins to modify universal tests to run over datastore and local stores too

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


Comment on lines +206 to +218
if existing_entity and existing_entity["event_ts"] >= new_ts:
continue
Copy link

@richardcann richardcann Jan 19, 2022

Choose a reason for hiding this comment

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

Not entirely sure this would improve speed as we are still traversing through the same number of elements, but we could remove L190-197 and merge the two traversals like this:

Suggested change
if existing_entity and existing_entity["event_ts"] >= new_ts:
continue
if existing_entity and existing_entity["event_ts"] >= new_ts:
entities.append(existing_key)
continue

@adchia adchia force-pushed the sfv_other_online_stores branch from accd797 to f82cbd2 Compare January 19, 2022 18:20
@adchia adchia closed this Jan 19, 2022
@adchia adchia force-pushed the sfv_other_online_stores branch from f82cbd2 to 05f4e8f Compare January 19, 2022 18:26
Signed-off-by: Danny Chiao <[email protected]>
@adchia adchia reopened this Jan 19, 2022
Signed-off-by: Danny Chiao <[email protected]>
@adchia adchia closed this Jul 21, 2022
@adchia adchia deleted the sfv_other_online_stores branch July 21, 2022 17:33
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

Successfully merging this pull request may close these issues.

2 participants