If I have a table with multiple secondary indexes, how do I generate an intersection? For example, if I have a users table with secondary indexes on "firstName" and "lastName", and want all users named 'Bob Smith':
r.table('users').getAll('Bob', {index: 'firstName'}).XXXX('Smith', {index: 'lastName'})
I can use a filter, but my understanding is that would be slower:
r.table('users').getAll('Bob', {index: 'firstName'}).filter({'lastName': 'Smith'})
Alternatively, can I do intersections with a compound index?