Re: SELECT speed with LIKE

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: SELECT speed with LIKE
Дата
Msg-id 3.0.6.32.20000402192403.0096b5f0@execulink.com
обсуждение исходный текст
Ответ на SELECT speed with LIKE  (JB <jimbag@kw.igs.net>)
Список pgsql-general
At 01:33 PM 4/01/00 -0500, you wrote:
>The table has a field called 'stname char(17)' which is indexed. The
>query is "SELECT * FROM data WHERE stname LIKE 'MAIN%'". I'm running on
>Redhat 6.1, 128MB ram, 40GB, P350. The actual index file is 4 MB.

I haven't tried it, but didn't someone mention a few weeks ago that  "WHERE
stname ~ '^MAIN'"  would produce the same results faster?

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

Предыдущее
От: brew@theMode.com
Дата:
Сообщение: Re: SELECT speed with LIKE
Следующее
От: Jeff MacDonald
Дата:
Сообщение: sql92