covering-index Questions

1

I have a simple count query that can use Index Only Scan, but it still take so long in PostgresQL! I have a cars table with 2 columns type bigint and active boolean, I also have a multi-column ind...

4

Solved

In the following query SELECT col1,col2 FROM table1 WHERE col3='value1' AND col4='value2' If I have 2 separate indexes one on col3 and the other on col4, Which one of them will be used in this ...
Samuels asked 21/11, 2011 at 14:19

3

Solved

I recently encountered an index in a database I maintain that was of the form: CREATE INDEX [IX_Foo] ON [Foo] ( Id ASC ) INCLUDE ( SubId ) In this particular case, the performance problem that ...
Thunderstorm asked 13/3, 2010 at 1:39
1

© 2022 - 2024 — McMap. All rights reserved.