Skip to content

Conversation

@RushiT0122
Copy link
Contributor

Description of change

Currently we make a request to retrieve contacts_by_company per company_id. But this results in performance issue TDL-24590, if we have large number of company ids. To overcome this issue, we will make one request for 250 company ids in a batch to retrieve contacts_by_company which will reduce number of contacts_by_company requests almost by 250 times.

Manual QA steps

  • Verified number of records match with original implementation
  • Verified different interrupted sync scenarios
    • No offset set for contacts_by_company to simulate existing connection scenario
    • contacts_by_company offset is lesser than companies offset
    • contacts_by_company offset is greater than companies offset (observed this scenario in internal testing)

Risks

Rollback steps

  • revert this branch

"companies_all": "/companies/v2/companies/paged",
"companies_recent": "/companies/v2/companies/recent/modified",
"companies_detail": "/companies/v2/companies/{company_id}",
"contacts_by_company": "/companies/v2/companies/{company_id}/vids",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still used?

@@ -1,5 +1,8 @@
# Changelog

## 2.13.1
Copy link
Contributor

Choose a reason for hiding this comment

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

in setup.py version mentioned is 2.14.0 and here it is 2.13.1
These should be in sync

@RushiT0122 RushiT0122 merged commit aa67891 into master Jan 23, 2024
@dsprayberry dsprayberry deleted the TDL-24590-fix-contacts-to-company branch August 14, 2025 17:38
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.

4 participants