How can i get all the records using scan ... now i am getting only 780 items .. I need to scan all 50000 items
It's useful if you can post code when raising issues but I have a feeling that you may be hitting the scan limits set by AWS:
The result set from a Scan is limited to 1 MB per call. You can use the LastEvaluatedKey from the scan response to retrieve more results.
You can use parallelScan(n) to increase the throughput.
UserModel.scan() .where('email').equals(email.toLowerCase()).exec((err, data) => {
how can i use LastEvaluatedKey ....??? or parallelScan ..?? what is totalSegments in parallelScan and how to get it for records like 1lac
@Ashvin09 Please use Global secondary index on email field, no need of scan operation.