2min chapter

Dear SQL DBA cover image

Why is My Query Faster on the Second Run?

Dear SQL DBA

CHAPTER

Using Memory to Speed Up Query Execution

memory is amazing in terms of reducing c p usage on your sequel server for frequently run queries by caching those plans. There's another way that memory can really make queries faster, and it doesn't fit 100%. It takes a lot of time to read data from disk. Semple server uses memory to cash those data pages as well in something called the buffer pool. If you've just created the view, it could be possible that the pages you need aren't in memory. So we go through the whole process of figuring out the plan first.

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