RE: pgadmin3 incredibly slow over network

From: "Nikita Kiryanov" <nikita(at)compulab(dot)co(dot)il>
To: "'Ricardo Martin Gomez'" <rimartingomez(at)hotmail(dot)com>, <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: RE: pgadmin3 incredibly slow over network
Date: 2019-02-06 11:09:36
Message-ID: 04f201d4be0c$71f8c200$55ea4600$@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hotmail(dot)com]
Sent: Wednesday, February 6, 2019 12:57 PM
To: Nikita Kiryanov <nikita(at)compulab(dot)co(dot)il>; pgadmin-support(at)lists(dot)postgresql(dot)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(at)compulab(dot)co(dot)il <mailto:nikita(at)compulab(dot)co(dot)il> >
Enviado: miércoles, 6 de febrero de 2019 07:54
Para: 'Ricardo Martin Gomez'; pgadmin-support(at)lists(dot)postgresql(dot)org <mailto:pgadmin-support(at)lists(dot)postgresql(dot)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(at)hotmail(dot)com]
Sent: Wednesday, February 6, 2019 12:43 PM
To: Nikita Kiryanov <nikita(at)compulab(dot)co(dot)il <mailto:nikita(at)compulab(dot)co(dot)il> >; pgadmin-support(at)lists(dot)postgresql(dot)org
<mailto:pgadmin-support(at)lists(dot)postgresql(dot)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(at)compulab(dot)co(dot)il <mailto:nikita(at)compulab(dot)co(dot)il> >
Enviado: miércoles, 6 de febrero de 2019 05:42
Para: pgadmin-support(at)lists(dot)postgresql(dot)org <mailto:pgadmin-support(at)lists(dot)postgresql(dot)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?

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Mathias Zajaczkowski 2019-02-06 15:55:19 RE: pgadmin3 incredibly slow over network
Previous Message Ricardo Martin Gomez 2019-02-06 10:56:47 RE: pgadmin3 incredibly slow over network