Re: directory tree query with big planner variation

Поиск
Список
Период
Сортировка
От Michael Stone
Тема Re: directory tree query with big planner variation
Дата
Msg-id 20060731111540.GE2900@mathom.us
обсуждение исходный текст
Ответ на directory tree query with big planner variation  (Axel Rau <Axel.Rau@Chaos1.DE>)
Ответы Re: directory tree query with big planner variation
Список pgsql-performance
On Mon, Jul 31, 2006 at 12:48:11PM +0200, Axel Rau wrote:
>               WHERE P.path ~ '^%@/[^/]*/$' ) AS NLPC

This can't be indexed. You might try something like
WHERE P.path LIKE '%@%' AND P.path ~ '^%@/[^/]*/$'

The schema could be a lot more intelligent here. (E.g., store path
seperately from file/directory name, store type (file or directory)
seperately, etc.) Without improving the schema I don't think this will
ever be a speed demon.

Mike Stone

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

Предыдущее
От: Axel Rau
Дата:
Сообщение: directory tree query with big planner variation
Следующее
От: Axel Rau
Дата:
Сообщение: Re: directory tree query with big planner variation