Re: grep -f keyword data query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: grep -f keyword data query
Дата
Msg-id 2042.1451239897@sss.pgh.pa.us
обсуждение исходный текст
Ответ на grep -f keyword data query  (Hiroyuki Sato <hiroysato@gmail.com>)
Ответы Re: grep -f keyword data query  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Список pgsql-general
Hiroyuki Sato <hiroysato@gmail.com> writes:
> I would like to create the query like the following.
> It work well, but extreme slow.
> ...
> Explain output.

>  Nested Loop  (cost=0.45..1570856063.28 rows=57122000000 width=57)
>    ->  Index Scan using ix_name_keywords on keywords k  (cost=0.28..221.78 rows=5000 width=30)
>          Index Cond: ((name)::text = 'esc_url'::text)
>    ->  Index Only Scan using ix_url_url_lists on url_lists u  (cost=0.17..199927.17 rows=11424400 width=57)
>          Index Cond: (url @~ k.url)

What in the world is this @~ operator?  And what sort of index are
you using now, that can accept it?  Are the rowcount estimates in
the EXPLAIN output accurate?  (If they are, it's hardly surprising
that the query takes a long time.)

            regards, tom lane


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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Recurring and non recurring events.
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: grep -f keyword data query