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

Tdl 24590 fix contacts to company #250

Merged
merged 15 commits into from
Jan 23, 2024
Merged

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

@@ -77,6 +77,7 @@ class StateFields:
"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
15 checks passed
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.

3 participants