Re: Joins on many-to-many relations.

Поиск
Список
Период
Сортировка
От Wiebe Cazemier
Тема Re: Joins on many-to-many relations.
Дата
Msg-id etbkf8$2me$1@sea.gmane.org
обсуждение исходный текст
Ответ на Joins on many-to-many relations.  (Wiebe Cazemier <halfgaar@gmx.net>)
Список pgsql-sql
On Thursday 15 March 2007 15:05, Rodrigo De León wrote:

> From http://www.postgresql.org/docs/8.2/static/indexes-types.html :
> 
> "The optimizer can also use a B-tree index for queries involving the
> pattern matching operators LIKE and ~ if the pattern is a constant and
> is anchored to the beginning of the string ? for example, col LIKE
> 'foo%' or col ~ '^foo', but not col LIKE '%bar'."

It made the query faster (1500 instead of 2500 ms), but not fast enough. But,
this is good to know, although I often need the '%foobar%' search string...



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

Предыдущее
От: "Rodrigo De León"
Дата:
Сообщение: Re: Joins on many-to-many relations.
Следующее
От: T E Schmitz
Дата:
Сообщение: join table with itself?