-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-intercom-native: add config option to use
/companies/scroll
…
…endpoint Intercom has two separate endpoints for retrieving companies: `/companies/list` (limited to 10k companies) and `/companies/scroll` (limited to only one "scroll" happening at a time). For users that have more than 10k companies in their Intercom account, they will need to use the `/companies/scroll` endpoint to ensure no data is missed. The `use_companies_list_endpoint` controls which of the two company-related endpoints are used. Within the connector, an `asyncio.Lock` is used to avoid attempting concurrent "scrolls" between `companies` and `company_segments`. The connector defaults to using `/companies/scroll`, preferring to capture all data instead of potentially missing data if the user has >10k companies. It may be worthwhile to remove the option to use `/companies/list` at a later date. The main reasons I anticipate users would check the `user_companies_list_endpoint` option are: - they have another application using `/companies/scroll` that they can't disable (not sure how common that is) - they want the slight speed boost in `companies` and `company_segments` (which seems relatively negligible with the testing I've done)
- Loading branch information
Showing
4 changed files
with
153 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters