I create a table with 43kk rows, populate them with values 1..200. So ~220k per each number spreaded through the table.
Result: at depesz I except total runtime < 1s, is it possible? I have SSD, core i5 (1,8), 4gb RAM. 9,3 Postgres. If I use Index Only scan it works very fast:
at depesz But I need to select id not val so Incex Only scan is not suitable in my case. Thanks in advance! asked Oct 31 '14 at 05:26 user1337 Markus Winand ♦♦ |
why my question is empty?
There seems to be a bug with links. I've styled the links a little bit until the bug is not triggered anymore. Sorry for that.
So, what's your question. Index-Only scan is supposed to be fast. Have you read this: Index-Only Scan
Thanks, works now. Yes, 'Index Only' works well. But I need select another field - not index and there are complicates. Select by index (both Bitmap and plain Index scans) works even slower then Sequential scan.
I edited my question and it is gone again. I made a shorter version - it is clear now what I'm asking.