Hi,
Assume we have the following:
CREATE TABLE test1 (
id integer,
content varchar
);
&
CREATE INDEX test1_id_index ON test1 (id);
CREATE INDEX test1_content_index ON test1 (content);
Which Select statement would perfom better?
1) SELECT content FROM test1 WHERE id = constant;
2) SELECT content FROM test1 WHERE id = constant; & content = constant
3) SELECT content & id FROM test1 WHERE id = constant & content = constant
Thanks..Ali
Assume we have the following:
CREATE TABLE test1 (
id integer,
content varchar
);
&
CREATE INDEX test1_id_index ON test1 (id);
CREATE INDEX test1_content_index ON test1 (content);
Which Select statement would perfom better?
1) SELECT content FROM test1 WHERE id = constant;
2) SELECT content FROM test1 WHERE id = constant; & content = constant
3) SELECT content & id FROM test1 WHERE id = constant & content = constant
Thanks..Ali