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.

Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner