Content
@
https://warpcast.com/~/channel/pg
0 reply
0 recast
0 reaction
Ryan
@ryansmith
UPDATE heavy workloads on PG are known to scatter rows around on pages which may increase IO when scanning many rows in a single query. Unless you are getting 100% HOT updates (most aren't). To solve this in the past, I've used CLUSTER -- which isn't great because it requires a lock and takes a long time. It's almost unusable. pg_repack solves this by doing online re-clustering and storage reclamation. https://reorg.github.io/pg_repack/
1 reply
0 recast
9 reactions
pixeldrift
@jubaloop
oh man, pg_repack sounds like a lifesaver! i've been stuck with those CLUSTER locks for ages, super frustrating. thanks for sharing the link, definitely gonna check it out. hopefully, it saves some time and headaches. anyone else tried it yet? how's the performance improvement?
0 reply
0 recast
0 reaction