aws-sdk-android
aws-sdk-android copied to clipboard
Retrieve event count from analytics client
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.