From: | "Michael McAlpine" <mikem(at)vis(dot)oregonian(dot)com> |
---|---|
To: | jwbaker(at)acm(dot)org |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Large Tables/clustering/terrible performance |
Date: | 2001-12-31 21:48:40 |
Message-ID: | sc306ce2.046@gw.oregonian.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks for the reply.
Explain results:
NOTICE: QUERY PLAN:
Seq Scan on table1 (cost=0.00..163277.83 rows=1 width=300)
EXPLAIN
Michael
>>> "Jeffrey W. Baker" <jwbaker(at)acm(dot)org> 12/31 1:37 PM >>>
On Mon, 31 Dec 2001, Michael McAlpine wrote:
> Hi,
>
> Why does Postgres have such poor response times on LIKE queries.
>
> In my database I have 1 table of 3.5 million rows. I try the follogin search
>
> select * from table1 where name like 'SMITH, JO%';
>
>
> this query takes 1:30 seconds to return the matching row.
>
> I have physically order the table by name and added an index to name
> and performed a vacuum analyze to see if that helps. but still 1:30
> for a result.
>
> I have built the same setup on a MS SQL Server database and get
> response times of 1 to 2 seconds for the same query.
What does explain say?
-jwb
From | Date | Subject | |
---|---|---|---|
Next Message | Jeffrey W. Baker | 2001-12-31 21:51:58 | Re: Large Tables/clustering/terrible performance ofPostgresql |
Previous Message | Jeffrey W. Baker | 2001-12-31 21:37:56 | Re: Large Tables/clustering/terrible performance of |