Dynamodb Timestamp Range query with steps (It's possible??)

36 Views Asked by At

Well, my query is simple but I haven't seen (nor do I know if it exists) anything that does what I want.

I know how to make a Timestamp Query where I get a range of ordered data, the range would be from an initTimestamp to an endTimestamp.

However, I want to add a small complexity to the query (A filter??). Instead of returning ALL the items within that range, I want it to return items with a step/jump of X number of items.

That is, suppose that in that range I have 50 items, if I add a step of 10, it should return the items: [0, 9, 19, 29, 39, 49]

I hope the question is understood. I honestly don't know if it exists.

PS: I know that post-processing can be done, but the number of items is so enormous that a query of this style would be ideal.

0

There are 0 best solutions below