chargebee-ruby icon indicating copy to clipboard operation
chargebee-ruby copied to clipboard

Get total size of list items

Open leechunhoe opened this issue 6 years ago • 0 comments

I have a requirement of getting the total number of Subscriptions of specific plan within duration of one month.

A work around is to use ChargeBee::Subscription.list( ... ).count and set the limit to a very big number (and use next_offset, if ever needed).

To save resources, is there a better way of getting the total items count?

https://apidocs.chargebee.com/docs/api/subscriptions

leechunhoe avatar May 15 '19 07:05 leechunhoe