RE: pgadmin3 incredibly slow over network

Поиск
Список
Период
Сортировка
От Nikita Kiryanov
Тема RE: pgadmin3 incredibly slow over network
Дата
Msg-id 04f201d4be0c$71f8c200$55ea4600$@compulab.co.il
обсуждение исходный текст
Ответ на RE: pgadmin3 incredibly slow over network  (Ricardo Martin Gomez <rimartingomez@hotmail.com>)
Список pgadmin-support

The following is for EXPLAIN SELECT * FROM quotations

 

HeidiSQL:

 

QUERY PLAN

Seq Scan on quotations  (cost=0.00..5177.66 rows=80566 width=629)

 

PostgreSQL:

 

QUERY PLAN

Seq Scan on quotations  (cost=0.00..5177.66 rows=80566 width=629)

 

If I do EXPLAIN ANALYZE SELECT * FROM quotations I get:

 

HeidiSQL:

 

Seq Scan on quotations  (cost=0.00..5177.66 rows=80566 width=629) (actual time=0.007..93.069 rows=80570 loops=1)

Total runtime: 180.094 ms

 

PostgreSQL:

 

Seq Scan on quotations  (cost=0.00..5177.66 rows=80566 width=629) (actual time=0.024..133.131 rows=80570 loops=1)

Total runtime: 234.574 ms

 

By the way HeidiSQL reports the following about SELECT * FROM quotations:

Affected rows: 0  Found rows: 80,570  Warnings: 0  Duration for 1 query: 0.000 sec. (+ 4.125 sec. network)

 

Given that the analyze query on pgAdmin shows similar numbers to those via HeidiSQL, it looks like the vast majority of the delay might be network transfer.

What could pgAdmin be doing that slows down network I/O so significantly?

 

From: Ricardo Martin Gomez [mailto:rimartingomez@hotmail.com]
Sent: Wednesday, February 6, 2019 12:57 PM
To: Nikita Kiryanov <nikita@compulab.co.il>; pgadmin-support@lists.postgresql.org
Subject: RE: pgadmin3 incredibly slow over network

 

Can you run an explain query in both? And copy the results... 

 

______________________

Saludos 

Ing. Ricardo Martín Gomez

DBA - SysAdmin


De: Nikita Kiryanov <nikita@compulab.co.il>
Enviado: miércoles, 6 de febrero de 2019 07:54
Para: 'Ricardo Martin Gomez'; pgadmin-support@lists.postgresql.org
Asunto: RE: pgadmin3 incredibly slow over network

 

Hi Ricardo,

 

I tried to reverse the order (first HeidiSQL then pgAdmin), but the result was the same.

 

From: Ricardo Martin Gomez [mailto:rimartingomez@hotmail.com]
Sent: Wednesday, February 6, 2019 12:43 PM
To: Nikita Kiryanov <nikita@compulab.co.il>; pgadmin-support@lists.postgresql.org
Subject: RE: pgadmin3 incredibly slow over network

 

Hi Nikita,

Are you run both querys in the same order always?

 (First pgAdmin, second HeidiSQL or psql)?

Can you try run querys in different order?

 (maybe the results are in memory, so it's faster the second run.)

 

______________________

Saludos 

Ing. Ricardo Martín Gomez

DBA - SysAdmin


De: Nikita Kiryanov <nikita@compulab.co.il>
Enviado: miércoles, 6 de febrero de 2019 05:42
Para: pgadmin-support@lists.postgresql.org
Asunto: pgadmin3 incredibly slow over network

 

If I use pgAdmin3 to query a remote database with SELECT * FROM big_table, the whole thing takes 1.5 minutes until I get my results.

If I run the same query, from the same computer, to the same remote database, using a different client (HeidiSQL, or even pgsql), it takes 5 seconds.

 

I run pgAdmin 1.22.2 on Windows 10, and the postgreSQL database is on Linux. The postgreSQL version is 9.3, but it doesn't seem to be specific to the

version. The same happens on 9.4. The large performance differences happen in other queries as well, to various degrees of difference.

 

What could be causing this?

 

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

Предыдущее
От: Ricardo Martin Gomez
Дата:
Сообщение: RE: pgadmin3 incredibly slow over network
Следующее
От: "Mathias Zajaczkowski"
Дата:
Сообщение: RE: pgadmin3 incredibly slow over network