Query on non-key attribute : <p>It appears that dynamodb's <code>query</code> method must include the partition key as part of the filter. How can a query be performed if you do not know the partition key?</p>

<p>For example, you have a User table with the attribute <code>userid</code> set as the partition key. Now we want to look up a user by their phone number. Is it possible to perform the query without the partition key? Using the <code>scan</code> method, this goal can be achieved, but at the expense of pulling every item from the table before the filter is applied, as far as I know.</p>
