79586637

Date: 2025-04-22 13:59:14
Score: 1
Natty:
Report link

After struggling for days assuming Limit in dynamoDB query works just the way it does in RDBMS I'd like to post this out here for clarity, Limit parameter in query actually denotes how many records to match and not necessarily limit of number records to return. You can find aws documentation explaining it here. Also, just in case anyone is wondering, the order of the query execution is, it will query your data based on PK/SK upto 1MB first then apply limit that you supplied as part of the query then apply whatever filter you may have provided.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ringadingding