Re: Query slow after VACUUM ANALYZE
От | gdh@eyjar.is |
---|---|
Тема | Re: Query slow after VACUUM ANALYZE |
Дата | |
Msg-id | 1923.213.220.100.208.1125483982.squirrel@www.eyjar.is обсуждение исходный текст |
Ответ на | Query slow after VACUUM ANALYZE (gdh@eyjar.is) |
Список | pgsql-performance |
Hi again [..] > > QUERY PLAN > ------------------------------------------------------------------------- > Seq Scan on orders (cost=0.00..12184.14 rows=29526 width=33) > Filter: (NOT (hashed subplan)) > SubPlan > -> Seq Scan on orders_items (cost=0.00..0.00 rows=1 width=33) > > After the vacuum, the plan is like this: > > QUERY PLAN > -------------------------------------------------------------------------------- > Seq Scan on fsi_orders (cost=0.00..40141767.46 rows=29526 width=33) > Filter: (NOT (subplan)) > SubPlan > -> Seq Scan on fsi_orders_items (cost=0.00..1208.12 rows=60412 > width=33) > This, of course, should be "orders", not "fsi_orders", and "orders_items", not "fsi_orders_items". Sorry for the confusion. Additional info: I'm running PostgreSQL 7.4.8. Thanks, Guðmundur.
В списке pgsql-performance по дате отправления: