Re: Partial index on boolean - Sometimes fails to index scan

Поиск
Список
Период
Сортировка
От Bryce Nesbitt
Тема Re: Partial index on boolean - Sometimes fails to index scan
Дата
Msg-id 46DD6E44.4000505@obviously.com
обсуждение исходный текст
Ответ на Partial index on boolean - Sometimes fails to index scan  (Bryce Nesbitt <bryce1@obviously.com>)
Ответы Trigger to change different row in same table  (PostgreSQL Admin <postgres@productivitymedia.com>)
Список pgsql-sql
Richard Huxton provided the answer: <i>It's a prepared query-plan, which means it can't plan to use the index because
thenext EXECUTE might have reconciled=true. <br /></i><br /> Bryce Nesbitt wrote: <blockquote
cite="mid:46DD0E81.2000901@obviously.com"type="cite"> ...Which is all good.  But the Hibernate version of query still
takesseveral seconds, and still appears in my pg_log slow query log:<br /><br /><tt>LOG:  duration: 2248.662 ms 
statement:EXECUTE C_51443  [PREPARE:  select count(vehicleeve0_.VEHICLE_EVENT_ID) as x0_0_ from EG_VEHICLE_EVENT
vehicleeve0_where (vehicleeve0_.CSO_ID=$1 )and(vehicleeve0_.RECONCILED=$2 )]</tt></blockquote> 

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: How to influence the planner
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cast on character columns in views