I have a table that looks like:
CREATE TABLE t (
x some_type_1,
y some_type_2,
z some_type_3,
PRIMARY KEY (x, y, z)
);
Now I want to execute this query efficiently:
SELECT * FROM t WHERE x = ? AND z = ?;
Is the (primary-key) index (x, y, z)
enough in this case, or should I create a separate index (x, z)
?