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

source-hubspot-native: search API breaks out of cycles with more than 10k records #2121

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

williamhbaker
Copy link
Member

@williamhbaker williamhbaker commented Nov 4, 2024

Description:

There is an undocumented failure of the search API when trying to page beyond 10,000 results. It's also possible that there are more than 10,000 records modified at the same time.

Previously the only way out of this was to re-backfill the binding. This adds a cycle-breaker routine that walks ids in ascending order that were all modified at the exact same time to avoid looping forever.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

… 10k records

There is an undocumented failure of the search API when trying to page beyond
10,000 results. It's also possible that there are more than 10,000 records
modified at the same time.

Previously the only way out of this was to re-backfill the binding. This adds a
cycle-breaker routine that walks ids in ascending order that were all modified
at the exact same time to avoid looping forever.
Copy link
Contributor

@Alex-Bair Alex-Bair left a comment

Choose a reason for hiding this comment

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

LGTM

@williamhbaker williamhbaker merged commit cce16ee into main Nov 4, 2024
71 of 77 checks passed
@williamhbaker williamhbaker deleted the wb/hsn-10k-breaker branch November 4, 2024 20:45
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