title: Dynamodb: query using more than two attributes
body: <p>In Dynamodb you need to specify in an index the attributes that can be used for making queries.</p>
  
  <p>How can I make a query using more than two attributes?</p>
  
  <p>Example using boto.</p>
  
  <pre><code>Table.create('users', 
          schema=[
              HashKey('id') # defaults to STRING data_type
          ], throughput={
              'read': 5,
              'write': 15,
          }, global_indexes=[
              GlobalAllIndex('FirstnameTimeIndex', parts=[
                  HashKey('first_name'),
                  RangeKey('creation_date', data_type=NUMBER),
              ],
              throughput={
                  'read': 1,
                  'write': 1,
              }),
              GlobalAllIndex('LastnameTimeIndex', parts=[
                  HashKey('last_name'),
                  RangeKey('creation_date', data_type=NUMBER),
              ],
              throughput={
                  'read': 1,
                  'write': 1,
              })
          ],
          connection=conn)
  </code></pre>
  
  <p>How can I look for users with first name 'John', last name 'Doe', and created on '3-21-2015' using boto? </p>