Help with slow query - Pgsql 9.2

Поиск
Список
Период
Сортировка
От Patrick B
Тема Help with slow query - Pgsql 9.2
Дата
Msg-id CAJNY3itmCUZupsqqgLs1FiQ-T4HRJfVANFXHvvZEQey00hwrmA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Help with slow query - Pgsql 9.2  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
Hi guys,

I got this query:
SELECT id,jobid,description,serialised_data
FROM logtable
WHERE log_type = 45
AND clientid = 24011
ORDER BY gtime desc



So it seems the very slow part is into:

              ->  Bitmap Index Scan on "ix_client"  (cost=0.00..5517.96 rows=367593 width=0) (actual time=2668.246..2668.246 rows=356327 loops=1)
                    Index Cond: ("clientid" = 24011)

Am I right? The query is already using an index on that table... how could I improve the performance in a query that is already using an index?

Thanks
Patricl

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

Предыдущее
От: Edson Richter
Дата:
Сообщение: Re: IDE for function/stored proc development.
Следующее
От: Greg Fodor
Дата:
Сообщение: Privileges on public schema can't be revoked?