3min chapter

Postgres FM cover image

Queues in Postgres

Postgres FM

CHAPTER

The Importance of Skip Lock in Batching

When we have a single worker, latency and throughput are very well connected. If one is updating until the very end of transaction, commit or rollback, exclusive lock will be on this row,. And another worker will be just waiting on it. It can be seen in wait events analysis very well. In this case, we can use for update no wait or for updates skip lock. But remember, if you, for example, use John go or something and like sometimes like, subtransactions might pop up, keep locked.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode