aws-sdk-android icon indicating copy to clipboard operation
aws-sdk-android copied to clipboard

Retrieve event count from analytics client

Open eeatonaws opened this issue 3 years ago • 0 comments

Which AWS Services is the feature request for? Pinpoint AnalyticsClient

Is your feature request related to a problem? Please describe. To retrieve the number of events using the AnalyticsClient requires calling getAllEvents().size(), but getAllEvents() deserializes the events from the database, making this method of getting the number of events rather inefficient.

Describe the solution you'd like A method in AnalyticsClient for retrieving the event count.

Describe alternatives you've considered An alternative is to use PinpointDBUtil directly to query the events (PinpointDBUtil(context).queryAllEvents().count), which avoids deserializing the events.

eeatonaws avatar Sep 29 '21 19:09 eeatonaws