How to Think Like the Engine Part 1

Поділитися
Вставка
  • Опубліковано 19 лип 2024
  • You've never had a formal class on Microsoft SQL Server before, and you want to learn how it works. I'll teach you using the Stack Overflow database printed out on a series of pages. Print the PDF to follow along: BrentOzar.com/go/engine
  • Наука та технологія

КОМЕНТАРІ • 41

  • @davidhicks2220
    @davidhicks2220 2 роки тому +14

    Brent is a great instruction. I landed my first job as a database developer mostly thanks to his training.

  • @dougnulton
    @dougnulton 6 місяців тому +1

    This is still the best video I've ever seen as an introduction to what's going on under the hood. The analogies to a human physically retrieving data are super helpful and intuitive.

  • @claycannon3296
    @claycannon3296 2 роки тому +10

    Been following the content for 3 or 4 years now and it just keeps getting better and more clear. Thanks for all this amazing and free content.

  • @terry_hutt
    @terry_hutt 2 роки тому

    Just discovered your series. Recommended by my DBA. Good level of intensity and information density. Thanks

  • @MethodOverRide
    @MethodOverRide Рік тому +3

    Thank you so much for providing this information to us for free!

  • @graylamb63-km8lk
    @graylamb63-km8lk 7 місяців тому

    This is a great video with an engaging presenter. I did pause at about 10min to go read docs on Pages and Extents Architecture.

  • @KefashWhite
    @KefashWhite 2 роки тому +1

    Awesome explanation and very easy to follow.

  • @fireystella
    @fireystella 2 роки тому

    i'm tasked to improve some slow db queries... have done a first run through bunch of online resources but looks like I need to really understand whats going on. your course seems really great. thanks so much :)

  • @aman.0_0
    @aman.0_0 2 роки тому

    awesome work.

  • @comp20B
    @comp20B 2 роки тому +4

    Love the content Brent. IMHO all the transition sounds, all the sound board sounds, are a bit too loud. Maybe reduce it by 20%. The sounds are louder than your voice.

  • @PPI967
    @PPI967 2 роки тому

    I know I don't have any mercy. You are so funny . Thanks for free class man.

  • @HikeManyMtns
    @HikeManyMtns 2 роки тому +1

    I love your reference to running SQL Server on a raspberry pie, so true. IKR, why am i having problems?

  • @shaikzuhair8537
    @shaikzuhair8537 2 роки тому +1

    When is good time to buy your course with offer. After listening 1st topic think like sql engine

  • @superfreiheit1
    @superfreiheit1 Рік тому

    19:38 why scan all pages complet? Scanning the column last access on all pages should be enouth right?

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Рік тому

      Because in a real data page, the columns aren't organized in some kind of vertical order. SQL Server crams the data in as tightly as it can - so to find each row's last access date, SQL Server has to open the row, find the position of LastAccessDate, and then read it.

  • @comp20B
    @comp20B 2 роки тому

    I like the mistake of the upsidedown paper.. it makes you human. Though we all know you're an alien with your TSQL knowledge. LOL

  • @TheHumanistX
    @TheHumanistX 11 місяців тому

    So this can't really convert to knowledge with mysql? I was trying to find some mysql info to start learning but would you recommend just working with MS SQL instead?

  • @charan775
    @charan775 Рік тому

    21:00 why is the where query reading more pages than select all query?
    select all queries all possible pages where users data lies in right

    • @TheBrentOzar
      @TheBrentOzar Рік тому +1

      Keep watching another 15 seconds and the answer's written on the screen. ;-)

  • @BsiennKhan
    @BsiennKhan 2 роки тому

    Would this help me in case of MySql?

  • @superfreiheit1
    @superfreiheit1 Рік тому

    If I have a table with 100 columns and 1000 rows, how many pages do I have?

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Рік тому

      It would depend on the columns' datatypes and how full they are. Long names take more space than short names, for example.

  • @MattiasFlodin
    @MattiasFlodin 7 місяців тому

    But wait, why doesn't MSSQL just grab the ID and access date, sort by that, then go back to the clustered index and fetch rows by ID in the appropriate order?

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  7 місяців тому +1

      Because you'd have to lock all those rows the whole time you were working. You ain't the only person tryin' to run a query around here, you know? ;-)

    • @MattiasFlodin
      @MattiasFlodin 7 місяців тому

      @@BrentOzarUnlimited what if you use row-versioning isolation?

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  7 місяців тому

      @@MattiasFlodin That's a great question, and we explore that in our Mastering classes - but it's not the default for SQL Server.

  • @dtovee
    @dtovee 9 місяців тому

    I should curse Brent as after you have completed Brent's training other training courses seem very dull and boring...
    I don't think Brent should be shot but it does remind me of the scene in The Adventures of Baron Munchausen:
    Horatio Jackson: Ah, the officer who risked his life by singlehandedly destroying...
    Functionary: [whispering in his ear] Six.
    Horatio Jackson: *Six* enemy cannon and rescuing...
    Functionary: Ten.
    Horatio Jackson: Ten of our men held captive by The Turk.
    Heroic Officer: Yes, sir.
    Horatio Jackson: The officer about whom we've heard so much.
    Heroic Officer: I suppose so, sir.
    Horatio Jackson: Always taking risks far beyond the call of duty.
    Heroic Officer: I only did my best, sir.
    Horatio Jackson: Have him executed at once.
    Soldier: Yes, sir. Come along.
    Horatio Jackson: This sort of behavior is demoralizing for the ordinary soldiers and citizens who are trying to lead normal, simple, unexceptional lives. I think things are difficult enough as it is without these emotional people rocking the boat.

  • @haiderali-wn1sn
    @haiderali-wn1sn 11 місяців тому

    hahah Oracle is way better Larry Elson has an hawaiin island, msoft doesn't have a sail boat racing team, lmfao!😅, - oracle has many cool features like result set caching.

  • @RAZR_Channel
    @RAZR_Channel 2 роки тому

    50% of the time... "Thou Speaks of Nothing"...