title: DynamoDB: When does 1MB limit for queries apply
body: <p>In the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.KeyConditionExpressions" rel="noreferrer">docs</a> for DynamoDB it says:</p>
  
  <blockquote>
    <p>In a Query operation, DynamoDB retrieves the items in sorted order, and then processes the items using <code>KeyConditionExpression</code> and any <code>FilterExpression</code> that might be present.</p>
  </blockquote>
  
  <p>And:</p>
  
  <blockquote>
    <p>A single Query operation can retrieve a maximum of 1 MB of data. This limit applies before any <code>FilterExpression</code> is applied to the results.</p>
  </blockquote>
  
  <p>Does this mean, that <code>KeyConditionExpression</code> is applied before this 1MB limit?</p>