The Backend Engineering Show with Hussein Nasser cover image

They Enabled Postgres Partitioning and their Backend fell apart

The Backend Engineering Show with Hussein Nasser

00:00

How to Manage Lock Requests in Postgres

Each partition has 22 indexes. This suggests that once we had 12 partitions, including all data in one of the partition, and then a partition for each day, the day of this began to struggle with managing the volume of lock requests. So now, remember, let's talk about locks a little bit. When you do an a select on a table, on Postgres at least, or insert or update, you acquire essentially two types of locks,. Something called the table lock, and something called the raw locks.

Play episode from 12:49
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app