UNION and bad performance

Поиск
Список
Период
Сортировка
Искать
От
Olivier Pala
Тема
UNION and bad performance
Дата
Msg-id
4D00B4DE.3030508@xgs-france.com
Список
Дерево обсуждения
Re: UNION and bad performance pasman pasmański <pasman.p@gmail.com>
Re: UNION and bad performance Robert Haas <robertmhaas@gmail.com>
Re: UNION and bad performance pinker <pinker@onet.eu>
Re: UNION and bad performance David G Johnston <david.g.johnston@gmail.com>
Hi,

I have a performance trouble with UNION query


First I have this view :

    SELECT a,b,c FROM table1, table2 WHERE jointure AND condition

    Result :
150 000 records in 1~2 s



Then, I adding an UNION into the same view :

    SELECT a,b,c FROM table1, table2 WHERE jointure AND condition
    UNION
    SELECT a,b,c FROM table3

    Result :
150 200 records in 6~7 s


Why, do I have bad performance only for 200 adding records ?

Thanks

SGBD : Postgres 8.3 et 8.4
В списке pgsql-performance по дате отправления
От: salima
Дата:
Сообщение: Tunning Postgres
От: Marc Mamin
Дата:
Сообщение: Re: UNION and bad performance
FAQ