Let's say I have a compound index involving these 3 columns.
(name, email, phone)
Is this index still will be used for these queries? The first query involves just 2 of indexed fields and the second index using more then all of the fields. By the way, which index type is most suitable for this?
SELECT * FROM person WHERE emails = 'xxx@email.com' AND phone = '012645678'
and
SELECT * FROM person WHERE name = 'dude' AND emails = 'xxx@email.com' AND phone = '012645678' AND title = 'CEO'