Re: Mejorar Rendimiento postgresql-php

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Cc: Felipe Fernandez <danielfm(at)teleline(dot)es>, postgresql <pgsql-es-ayuda(at)postgresql(dot)org>, php <php-es(at)lists(dot)php(dot)net>
Subject: Re: Mejorar Rendimiento postgresql-php
Date: 2004-07-29 14:05:07
Message-ID: 20040729140507.GB3038@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Thu, Jul 29, 2004 at 08:52:05AM -0300, Martin Marques wrote:

> El problema con el LIKE es que los incides no se van a usar en alguna de las
> ocaciones siguientes:
>
> 1) Tenes puesto un LOCALE distinto de C.
> 2) Tenes una consulta tipo: campo1 LIKE '%mente'
>
> En cualquiera de estos dos casos, el planificador de PostgreSQL no va a usar
> los indices simplemente porque no tiene sentido.

Ojo que puedes usar varchar_pattern_ops para permitir usar indices en
estos casos.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"You knock on that door or the sun will be shining on places inside you
that the sun doesn't usually shine" (en Death: "The High Cost of Living")

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Martin Marques 2004-07-29 14:30:02 Re: Mejorar Rendimiento postgresql-php
Previous Message Martin Marques 2004-07-29 11:52:05 Re: Mejorar Rendimiento postgresql-php