1 Answer
- Newest
- Most votes
- Most comments
1
To avoid data duplication, you first Query
the list of users. From the list returned, you then do a BatchGetItem
which can return you up to 100 followers profile information per request. Then you lazily load this, so get 100 and populate your dashboard. If the user scrolls past 80 users, fetch the next 100 in the list and continue paging as much as the user scrolls.
Relevant content
- asked 9 months ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
ok lets just say if a user has 5000 followers . then i am going fetch all list of followeres data by calling batchGetItem 50 time am i right?
Correct, but you only call the batchget when needed. You wouldn't load all 5000 items in one go.