Re: [GENERAL] 50 MB Table

Поиск
Список
Период
Сортировка
От Marten Feldtmann
Тема Re: [GENERAL] 50 MB Table
Дата
Msg-id 200003071858.TAA25711@feki.toppoint.de
обсуждение исходный текст
Ответ на Re: [GENERAL] 50 MB Table  (JB <jimbag@kw.igs.net>)
Список pgsql-general
> CREATE INDEX nx_info1 ON info (lastname);
> CREATE INDEX nx_info2 ON info (street_name);
>
> The select is as simple as this in most cases...
>
> SELECT * FROM info WHERE street_name LIKE 'MAIN%';
>
> .,,the table about 50MB worth, about 70,000 records. I have an index on
> 'lastname' and 'street_name' and I need to search on each of these with
> 'LIKE'. So I was wondering about ways to speed this up. It's very slow.
> It takes about 20 seconds for the above query. I even uppercased all the

 I think, that psql can not use any indicces when doing queries like
this. The indices would work if you would compare with "=".

 Actually I even do not even know, how one culd create a simple index
helping for searches like this.

 Marten





В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: [GENERAL] Accounting/inventory systems
Следующее
От: JB
Дата:
Сообщение: Re: [GENERAL] 50 MB Table