pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Postgres going very slow 2+ messages / 2 participants [nested] [flat]
* Postgres going very slow @ 2020-09-30 08:05 Olivier Leprêtre <o.lepretre@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: Olivier Leprêtre @ 2020-09-30 08:05 UTC (permalink / raw) To: pgsql-general Hi, We have a database which is getting very slow. Pgadmin 3 is alos very slow, requiring more than 2 minutes to refresh the list of schemas Machine is a windows server 2016 with Intel Xeon 2,4Ghz, 24 Go Ram. Postgres 9.6/32 bits Database contains 4000 schemas, each having 164 tables, 48 index. This generates 3,2 millions files in one folder (which could be an explanation..) Searching to distribute datas across different disks, I looked at tablespace but as we work with schemas as a whole, it doesn’t seems to be adequate. I tried to see if it as possible to distribute schemas on different folders but it doesn’t seems possible in the same database. Would a solution be to create different databases which is possible but more complex to manage from a development point of view ? Does going to postgres 64 could improve things ? Any suggestions ? Thanks very much ! Olivier -- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Postgres going very slow @ 2020-09-30 11:14 Pavel Stehule <pavel.stehule@gmail.com> parent: Olivier Leprêtre <o.lepretre@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Pavel Stehule @ 2020-09-30 11:14 UTC (permalink / raw) To: Olivier Leprêtre <o.lepretre@gmail.com>; +Cc: pgsql-general st 30. 9. 2020 v 10:06 odesílatel Olivier Leprêtre <o.lepretre@gmail.com> napsal: > Hi, > > > > > > We have a database which is getting very slow. Pgadmin 3 is alos very > slow, requiring more than 2 minutes to refresh the list of schemas > > Machine is a windows server 2016 with Intel Xeon 2,4Ghz, 24 Go Ram. > Postgres 9.6/32 bits > > Database contains 4000 schemas, each having 164 tables, 48 index. This > generates 3,2 millions files in one folder (which could be an explanation..) > > Searching to distribute datas across different disks, I looked at > tablespace but as we work with schemas as a whole, it doesn’t seems to be > adequate. > > I tried to see if it as possible to distribute schemas on different > folders but it doesn’t seems possible in the same database. > > Would a solution be to create different databases which is possible but > more complex to manage from a development point of view ? > > Does going to postgres 64 could improve things ? > > Any suggestions ? > You have 24GB RAM and you use 32bit Postgres. Sure, using 32 bit is pretty ineffective. Pgadmin will be every time slow if you have 4000 schemas - this design is not good for interactive tools that show all schemas. Regards Pavel > > Thanks very much ! > > > > Olivier > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; Garanti > sans virus. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&...; > <#m_3938937459389730491_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-09-30 11:14 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-30 08:05 Postgres going very slow Olivier Leprêtre <o.lepretre@gmail.com> 2020-09-30 11:14 ` Pavel Stehule <pavel.stehule@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox