I have a table of 3M rows.
I wanted to retrieve all those rows and do a visualization using dc.js
.
Problem I have is, for just a single column it takes about 70 secs.
And If i write my query it takes about 240 secs to retrieve those rows.
I'm using using select query on columns like this.
SELECT COL1, COL2 FROM TABLE
That's it. No grouping, nothing.
But it takes hell lot of time.
Heard of indexing and I created a Index for the columns I use. But even though no fruitful results.
EXPLAIN (BUFFERS, ANALYZE)
? – Craig Ringer Feb 26 '14 at 12:179.1
. And what's the buffers and analyze? I'm very new to this. – user3206082 Feb 26 '14 at 12:18EXPLAIN
. You want those results? – user3206082 Feb 26 '14 at 12:38