Re: measure database contention

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: measure database contention
Дата
Msg-id 3073cc9b0812171019n2244ecfaibf4c514986a69dee@mail.gmail.com
обсуждение исходный текст
Ответ на Re: measure database contention  ("Robert Haas" <robertmhaas@gmail.com>)
Ответы Re: measure database contention  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: measure database contention  ("Robert Haas" <robertmhaas@gmail.com>)
Список pgsql-performance
On Wed, Dec 17, 2008 at 11:56 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>> is the exact query... i think it will be removed later today because
>> is a bad query anyway... but my fear is that something like happens
>> even with good ones...
>>
>> maybe chekpoints could be the problem?
>> i have 8.3.5 and condigured checkpoint_timeout in 15 minutes,
>> chekpoint_segments 6 and checkpoint_completion_target to 0.5
>
> Well, it might help if you could provide the query, and the EXPLAIN output.
>

ok... remember i say it's a bad query ;)
actually, seems there's a suitable index for that query (i guess it is
using it because of the order by)

mic=# explain analyze
mic-# SELECT * FROM tgen_persona ORDER BY empresa_id, persona_id ASC;
                                                                 QUERY PLAN

---------------------------------------------------------------------------------------------------------------------------------------------
 Index Scan using pk_tgen_persona on tgen_persona  (cost=0.00..8534.09
rows=86547 width=884) (actual time=0.096..129.980 rows=86596 loops=1)
 Total runtime: 175.952 ms
(2 rows)

as you see, explain analyze says it will execute in 175.952ms and
because of network transfer of data executing this from pgadmin in
another machine it runs for 17s... but from time to time pgFouine is
shown upto 345.11 sec

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

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

Предыдущее
От: "Robert Haas"
Дата:
Сообщение: Re: measure database contention
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: measure database contention