pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
3 million record updates 2+ messages / 2 participants [nested] [flat]
* 3 million record updates @ 2002-10-05 00:05 Jie Liang <jie@stbernard.com> 0 siblings, 0 replies; 2+ messages in thread From: Jie Liang @ 2002-10-05 00:05 UTC (permalink / raw) To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin Tom, I tried to update a table with ~3 million records a set=null, it takes a hour unfinished. I checked my vmstat, it shown that disk where the WAL written was 100% busy, so I think we reach the bottleneck. What else parameters I can turn? or I misconfigured? my current pg conf: shared_buffers=60000 wal_buffers=8 sort_mem=512 vacuum_mem=8192 OS conf: shmmax=535404544 shmmin=1 shmmni=192 shmseg=256 shmall=130714 shm_use_phys=1 OS: FreeBSD-4.6.2 DB: Postgresql-7.2.1 Thanks. Jie Liang ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: 3 million record updates @ 2002-10-06 03:06 Nikolaus Dilger <nikolaus@dilger.cc> 0 siblings, 0 replies; 2+ messages in thread From: Nikolaus Dilger @ 2002-10-06 03:06 UTC (permalink / raw) To: jie@stbernard.com; +Cc: tgl@sss.pgh.pa.us; pgsql-admin Jie Liang, PostgreSQL needs to keep track of you 3 million updates until you perform a commit. So one way to avoid the WAL contention is to use a FOR loop and issuing a commit every 1,000 records or so. Regards, Nikolaus Dilger Jie Liang wrote: > > Tom, > > I tried to update a table with ~3 million records a > set=null, > it takes a hour unfinished. I checked my vmstat, it > shown that disk where > the WAL written > was 100% busy, so I think we reach the bottleneck. What > else parameters I > can turn? > or I misconfigured? > > my current pg conf: > > shared_buffers=60000 > wal_buffers=8 > sort_mem=512 > vacuum_mem=8192 > > OS conf: > shmmax=535404544 > shmmin=1 > shmmni=192 > shmseg=256 > shmall=130714 > shm_use_phys=1 > > OS: FreeBSD-4.6.2 > DB: Postgresql-7.2.1 > > Thanks. > > Jie Liang > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send > an appropriate > subscribe-nomail command to majordomo@postgresql.org so > that your > message can get through to the mailing list cleanly ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-10-06 03:06 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2002-10-05 00:05 3 million record updates Jie Liang <jie@stbernard.com> 2002-10-06 03:06 Re: 3 million record updates Nikolaus Dilger <nikolaus@dilger.cc>
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