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

misc: Remove *_count fields #290

Merged
merged 1 commit into from
Dec 10, 2024
Merged

misc: Remove *_count fields #290

merged 1 commit into from
Dec 10, 2024

Conversation

vincent-pochet
Copy link
Contributor

Context

The API response are returning a lot of counters. Since the exposed resources can be linked to a lot of objects and can be called a lot, these counters are posing a scalability problem and are slowing down the global performance of the API.

To remediate the situation the decision was made to remove all these fields.

Changes

This PR removes the following fields:

  • BillableMetric
    • active_subscriptions_count
    • draft_invoices_count
    • plans_count
  • Plan
    • active_subscriptions_count
    • draft_invoices_count
  • Tax
    • add_ons_count
    • charges_count
    • customers_count
    • plans_count

@vincent-pochet vincent-pochet merged commit 7696b7b into main Dec 10, 2024
7 checks passed
@vincent-pochet vincent-pochet deleted the misc-remove-filters branch December 10, 2024 08:48
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