Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why pgAdmin 4 is too slow?

pgAdmin 4 GUI for postgreSQL is very slow. It takes too much time to even expand a server tree or a database tree. They each took almost 30 seconds to expand. It also hangs while creating a new database or table. Even after loading it took more than a minute just to create and save a new database. It happens almost every time I load the pgAdmin. Is this problem faced just by me or there's something wrong?

My system specifications: PostgreSQL 12.3, Firefox 77.0, Windows 10 64-bit, 8th Gen Quad Core i5 8250u processor, 8GB RAM and 2GB dedicated graphics memory.

In the picture you can see:

  • The database tree is still loading.
  • The right click menu and create database window got hanged up.

enter image description here

Hanged on clicking save. It took more than a minute to save a new database enter image description here

like image 947
Karthik Avatar asked Jun 04 '20 04:06

Karthik


People also ask

Is pgAdmin slow?

pgAdmin 4 GUI for postgreSQL is very slow. It takes too much time to even expand a server tree or a database tree. They each took almost 30 seconds to expand.

Why is my Postgres so slow?

Disk Access. PostgreSQL attempts to do a lot of its work in memory, and spread out writing to disk to minimize bottlenecks, but on an overloaded system with heavy writing, it's easily possible to see heavy reads and writes cause the whole system to slow as it catches up on the demands.

Is pgAdmin and DBeaver same?

One major difference, however, is that pgAdmin is a web application and DBeaver is a desktop application. You can complete the following operations easily with both tools: Define PostgreSQL server and database connection details. Browse the database and its objects.

How do I find slow queries in PostgreSQL?

Typically discovered through slow response or extended increases in database CPU, the pg_stat_activity view can help to find out what query is causing issues. The pg_stat_activity view contains details of all currently running queries, including user, connection, and timing details.


1 Answers

I had the very same issue, Seems it's related to Windows 10 preferring ipv6 over ipv4.

the following fix worked for me: https://dba.stackexchange.com/questions/201646/


Modify the listen_addresses setting in

the postgresql.conf file usually located under : (unless another data folder specified)

{installation folder}/data/postgresql.conf


to be -> listen_addresses = '127.0.0.1,::1'


The Default value for the listen_addresses is localhost

like image 140
M. Amer Avatar answered Oct 14 '22 03:10

M. Amer