From: | "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: index or not |
Date: | 2011-12-12 20:23:47 |
Message-ID: | 20111212212347.08b559bf@anubis.defcon1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Mon, 12 Dec 2011 20:26:06 +0100
Andreas Kretschmer <akretschmer(at)spamfence(dot)net> wrote:
>
> As i said: use EXPLAIN. The answer of your question depends on a lot of
> details, i can't say if an seq-scan is cheaper or not. (for instance, if
> you have SSDs, a index-scan maybe is cheaper than an seq-scan ...)
>
> Create an Index, use explain, if it use a seq-scan you can drop the index.
>
> For such small tables it is hard to guess the plan...
Ok, I'll create indexes (no time to test right now), thanks.
--
"Take that, you hostile sons-of-bitches!"
-- James Coburn, in the finale of _The_President's_Analyst_
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Yves F. Barbier | 2011-12-12 21:00:37 | clustering |
Previous Message | Andreas Kretschmer | 2011-12-12 19:26:06 | Re: index or not |