2min chapter

Elixir Mix cover image

Creating League of Legends Probuild with Baptiste Chaleil - EMx 207

Elixir Mix

CHAPTER

How to Analyze a Slow Database and Fix It

I was in Thailand. When we could go, I was like, Oh, why so slow? I will fix it. So I use the PG stats, then I find like,Why the query is taking eight seconds. That's very, very, very slow. And I use explain analyze and then I check a bit what I did,. Then I have to create an index on the key that I use in the order by. After that, I realized, Oh, but I'm using some left join. It doesn't work with the key. So I have to use inner choice for this case. But yeah, with PG, PG statistic, it was not too hard to find it

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