3min chapter

Dear SQL DBA cover image

Why is My Query Faster on the Second Run?

Dear SQL DBA

CHAPTER

Why Memory Is a Big Deal in SQL Servers

memory is a big deal to make your queries faster, especially on repeat runs. sequil server saves that off for you when you create the view but it doesn't know how queries are going to run the view. When you write a query using a view, single server doesn't know if you want all the columns or just some of them. It will compile an execution plan for how to run your query. This process of compiling the execution plan can take time, and it does. Sometimes it's a very small amount of time that could be a longer amount of time.

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