I’m in the process of transitioning away from Dynamodb and I’m using Alternator to handle our queries / entries to Scylladb. I’m running into an issue where sometimes Alternator will return and empty array but also have a cursor (LastEvaluatedKey). There are items returned after using the cursor to paginate through the db, but the expected behavior is that Alternator returns all the items it can first (like it does in Dynamodb). Anyone have an idea what’s going on here?
Hi,
I believe current behavior is valid and compatible with dynamodb, see note:
A Query operation can return an empty result set and a LastEvaluatedKey if all the items read for the page of results are filtered out.
from
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html