Dear SQL DBA cover image

Why is My Query Faster on the Second Run?

Dear SQL DBA

00:00

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.

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