Re: [Pgsql-ayuda] Duda al configurar tsearch2

From: "Jenson Yabar" <jyabar(at)certicom(dot)com(dot)pe>
To: Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Subject: Re: [Pgsql-ayuda] Duda al configurar tsearch2
Date: 2003-09-30 17:05:02
Message-ID: 20030930170034.M95731@certicom.com.pe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Aqui estoy publicando el resultado de dos explain... alguna sugerencia... algo
que me puedan ayudar a mejor el tiempo de respuesta...
gracias.

-----------------------------------
Index Scan using idxfti_idx on ttveri (cost=0.00..4927.78 rows=1241
width=29) (actual tim
e=1334.79..8652.38 rows=1 loops=1)
Index Cond: (idxfti @@ '\'alvarado\' & \'arrieta\''::tsquery)
Filter: (idxfti @@ '\'alvarado\' & \'arrieta\''::tsquery)
Total runtime: 8668.60 msec
(4 rows)

-----------------
Index Scan using idxfti_idx on ttveri (cost=0.00..4927.78 rows=1241
width=29) (actual time=195.16..38540.27 rows=243 loops=1)
Index Cond: (idxfti @@ '\'garcia\' & \'diaz\''::tsquery)
Filter: (idxfti @@ '\'garcia\' & \'diaz\''::tsquery)
Total runtime: 38622.41 msec
(4 rows)

================================
Jenson Yábar Arrieta
Analista Programador de Sistemas
Telf: 225-5010 Anexo: 228
CERTICOM S.A
================================

---------- Original Message -----------
From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Jenson Yabar <jyabar(at)certicom(dot)com(dot)pe>
Cc: Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
Sent: Tue, 30 Sep 2003 12:17:19 -0400
Subject: Re: [Pgsql-ayuda] Duda al configurar tsearch2

> On Tue, Sep 30, 2003 at 10:05:52AM -0500, Jenson Yabar wrote:
> > Hola lista, tengo una duda, configure en mi BD el tsearch2 realize todo los
> > pasos que indican,aplique el vacuum y cuando realizo la consulta :
> >
> > select no_person from verificador.ttveri where idxfti @@ 'alvarado &
> > arrieta'::tsquery;
> >
> > demora cerca de 28 segundos.
>
> Huh, yo no soy muy ducho en tsearch, pero podrias publicar el explain
> analyze de esa consulta?
>
> --
> Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
> "La verdad no siempre es bonita, pero el hambre de ella sí"
------- End of Original Message -------

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2003-09-30 17:26:21 [Pgsql-ayuda] Donde esta .pgaccess
Previous Message Alvaro Herrera 2003-09-30 16:17:19 Re: [Pgsql-ayuda] Duda al configurar tsearch2