we have 3 cols {'x','y','z'}
and there are millions of records
when i create one by one index
{x:1}
{y:1}
{z:1}
collection.find({'x':'foo','y':'bar','z':'test'})
works faster
but when i do multiple indexes as {x:1,y:1,z:1}
collection.find({'x':'foo','y':'bar','z':'test'})
works more faster
so my question is what will happen for below find;
collection.find({'x':'foo','y':'bar'})
for index {'x':1,:'y':1}
for index {'x':1,'y':1,'z':1}
will they in same speed?
The second question is below indexes are same?
{'x':1,'y':1,'z':1}
{'y':1,'z':1,'x':1}