From: | Martin Moore <martin(dot)moore(at)avbrief(dot)com> |
---|---|
To: | Alexander Farber <alexander(dot)farber(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Not sure if I should CREATE INDEX for text columns on which I plan to filter later |
Date: | 2018-02-21 16:01:41 |
Message-ID: | AC56C946-8609-4544-9E1C-EB512928BF48@avbrief.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
My point was that your explain would be the same with indexes as without as they won’t be used.
Martin.
From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Date: Wednesday, 21 February 2018 at 12:33
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Not sure if I should CREATE INDEX for text columns on which I plan to filter later
Hi Martin -
On Wed, Feb 21, 2018 at 1:26 PM, Martin Moore <martin(dot)moore(at)avbrief(dot)com> wrote:
I’m no expert but I’d think it unlikely an index would be considered for a table with only 100 rows in. Also I’m pretty sure only one index per table is used, so you’d want to put state1 and state2 in one index.
I hope to have more records in the words_games table later when my game is launched (currently in soft launch/beta).....
Regards
Alex
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Aguayo Garcia-Rada | 2018-02-21 16:03:34 | Re: Installing 9.6.6 to a RHEL 6.7 server with no Internet access |
Previous Message | Bill Moran | 2018-02-21 16:00:43 | Re: Not sure if I should CREATE INDEX for text columns on which I plan to filter later |