I have about 200MB of data stored in a S3 document collection (the highest one). Each document is about 300KB in size.
But when I ran my query, I am surprised to see that it requires 7245.81 RUs. Because S3 is at 2500 RUs/Second, this performance won't scale for my application.
I just want to ask if I am doing anything wrong and if there is anything that I can do to improve it?
My query is like this:
SELECT item.Id,item.Priority, va.something, wa.something... 11 fields in total
FROM model.Item item
JOIN va in item.Content.Children
JOIN wa in va.Children
WHERE item.State != 5
I am using "Range" as the index type. Would that impact the performance of this query?
WHERE item.State > 5 OR item.State < 5Also try switching it to a hash index. For a single value, I would think that a hash index would be as efficient or more than a range index. - Larry Maccherone