Re: REDUCIR COSTE DEL QUERY

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "SERGIO CRESPO" <screspo(at)rollerstar(dot)com>
Cc: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: REDUCIR COSTE DEL QUERY
Date: 2007-07-25 16:44:30
Message-ID: c2d9e70e0707250944y4a6b496bucb6eb8b5528276f7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 7/25/07, SERGIO CRESPO <screspo(at)rollerstar(dot)com> wrote:
> Alvaro, el problema es el LIKE del campo codigo. Si pongo '=' en vez d LIKE
> va muy rapido.
>

probablemente necesitas usar bpchar_pattern_ops pero no parece haber
una manera de indicarle a PRIMARY KEY que lo use...

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Perez Lozano 2007-07-25 16:49:37 Re: Ayuda sobre respaldo con php
Previous Message Mario Gonzalez 2007-07-25 16:36:20 Re: Tipo CHAR [ERA: Re: REDUCIR COSTE DEL QUERY}