SQL Server Performance Essentials - Full Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 147

  • @ICodeMechanic
    @ICodeMechanic 2 ปีที่แล้ว +82

    Hey! this is Rajan Arora. Thank you so much Beau for posting my tutorial. I hope this will help all the viewers to tune their SQL Statements in MS SQL Server. I hope we have more collaboration like this in the future!

    • @abdulwahab-rw1yq
      @abdulwahab-rw1yq 2 ปีที่แล้ว +4

      Thanks Rajan.. this is really one of the best vidoes i have watched on peformance tuning

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      @@abdulwahab-rw1yq Thanks for the feedback

    • @ahmad-murery
      @ahmad-murery 2 ปีที่แล้ว +3

      That was not just a good refresher to me but I also learned some new things,
      it's 4 hours long but definitely worth it,
      Well done Rajan, and thanks Free Code Camp for sharing,

    • @DivakarRaj
      @DivakarRaj 2 ปีที่แล้ว +2

      Could you please provide link where the DM queries can be accessed from

    • @dev.maazqureshi
      @dev.maazqureshi 2 ปีที่แล้ว +1

      Thanks, Rajan This course is just excellent.. love it!

  • @Norman_Fleming
    @Norman_Fleming 2 ปีที่แล้ว +22

    As someone that has been writing code for 40 years I totally agree with your initial premise. If you are writing the SQL you need to understand how it operates and the costs/tradeoffs you may be making. Your video content was very well organized and presented.

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว +1

      Thank you for the feedback

    • @parthasarathiramachandran8189
      @parthasarathiramachandran8189 ปีที่แล้ว

      Timstamps for various topics covered..
      10:08 Spooling: duplicate aggregation: 18:21 Hashmatch: unsorted data 23:54 KeyLookup: missing data
      th-cam.com/video/t2R0-xcKw44/w-d-xo.html

  • @universecode1101
    @universecode1101 2 ปีที่แล้ว +21

    I am a self-taught developer 😍 who after years of Js and React, and on my TH-cam channel 🧑🏻‍💻 I create projects with React and tailwind or Html and Css… right now I’m learning Python and as you well know, SQL is part of his world. This video comes at the right time 😎

  • @rajendrawarrier7274
    @rajendrawarrier7274 10 หลายเดือนก่อน +3

    Very elegant presentation with crisp and clear explanations. Thank you for the amazing effort. This helped me immensely and so would it have been for several others there I bet!

  • @mjKeszely
    @mjKeszely ปีที่แล้ว +4

    Exactly what I need. Thank you, Mr. Rajan and FCC team.

  • @av12-db
    @av12-db 2 ปีที่แล้ว +4

    This is wonderful course. I have been waiting to learn these techniques. Thank you so much for making it.

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว +1

      Thanks for the feedback

  • @noddychoi
    @noddychoi 2 ปีที่แล้ว +8

    This tutorial is absolutely great and helpful !!!!!.
    Hope to see another vid about MySQL and Postgre !!

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      Thanks for the feedback

    • @alexgeld7173
      @alexgeld7173 ปีที่แล้ว

      @@ICodeMechanic So, can I do it with Azure DataStudio on a Mac?

  • @michelchaghoury9629
    @michelchaghoury9629 2 ปีที่แล้ว +37

    Great tutorial we need more SQL Server tutorials, please in the future make a SQL Server DBA, SSIS, SSRS tuts thank you

    • @surajkhot7530
      @surajkhot7530 2 ปีที่แล้ว +1

      I also want

    • @JimRohn-u8c
      @JimRohn-u8c 2 ปีที่แล้ว +1

      Especially SSIS because jobs everywhere still ask for it but I can’t find resources to learn it.

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว +1

      Thanks for the feedback and your suggested topics are noted

    • @lillyoko7838
      @lillyoko7838 2 ปีที่แล้ว

      פבחבןבפןב

    • @lillyoko7838
      @lillyoko7838 2 ปีที่แล้ว

      יי פיב

  • @TheFunVampire
    @TheFunVampire ปีที่แล้ว +4

    Outstanding video and resource, thank you so much for making this!

  • @sujaykha
    @sujaykha 2 ปีที่แล้ว +2

    u r channel deserves 500 million subs

  • @parthasarathiramachandran8189
    @parthasarathiramachandran8189 ปีที่แล้ว +1

    Timstamps for various topics covered..
    10:08 Spooling: duplicate aggregation: 18:21 Hashmatch: unsorted data 23:54 KeyLookup: missing data
    th-cam.com/video/t2R0-xcKw44/w-d-xo.html

  • @zusm
    @zusm 2 ปีที่แล้ว +5

    I coincidentally just started my database course yesterday

  • @north-eastblue7326
    @north-eastblue7326 2 ปีที่แล้ว +10

    Thank you so much for this course, exactly what I needed.🤩

  • @bezosphere
    @bezosphere 2 ปีที่แล้ว +16

    Learning about Databases is so important because almost everything in this world contains a database

  • @ayomidea-s
    @ayomidea-s 2 ปีที่แล้ว +6

    You guys are the best!

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 4 หลายเดือนก่อน

    The one I just mentioned (starting around 16:50) is also a bit inconsistent. He just talked about a clustered index, then kind of seems to be talking about a table scan, then says indexes will be covered later. When he says a scan operation will read every data page in the table, is he talking about a heap, or a table with a clustered index????

  • @hassanraza6244
    @hassanraza6244 2 ปีที่แล้ว +4

    Kindly create a full course on SQL Server - DBA

  • @kwizerafrank4978
    @kwizerafrank4978 2 ปีที่แล้ว +4

    This was what i was looking for!

  • @shubhamkhinchi2401
    @shubhamkhinchi2401 5 หลายเดือนก่อน

    Thank you so much Rajan for what i exactly looking for .
    💯

  • @aleck156
    @aleck156 4 หลายเดือนก่อน

    If possible, run multiple queries at the same time. Results will be easier to compare when you have several execution plans in sight and can just hover a mouse over them for comparison.

  • @94964yasumo
    @94964yasumo 2 ปีที่แล้ว +6

    I executed the same query as the section 2.6 at (0:52:30) and got a different result that was an empty table. I wonder why ce.CourseOfferingId is specified as NULL. It supposes to have a not-null constraints. Would you please teach me?

    • @ebenbrittz535
      @ebenbrittz535 11 หลายเดือนก่อน

      Yes, I also got this, and the SQL Execution plan is completely different to what is shown in the video.

  • @chrisgalvez
    @chrisgalvez ปีที่แล้ว

    I'm glad have found this jewel. Thank you very much.

  • @lawb4144
    @lawb4144 2 ปีที่แล้ว +4

    Great Course. Thank you so much.

  • @ArunKumar-tx1re
    @ArunKumar-tx1re 2 ปีที่แล้ว +1

    Wow great.this is what I was expecting.thank you so much

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 4 หลายเดือนก่อน

    16:50 It is already wrong. It claims that a scan operation reads every data page in the table. Nope. It might, but it might not.
    A scan starts at the beginning (or ending) of the (clustered or non-clustered) index and reads 8k pages one at a time FOR AS LONG AS IS NEEDED. For example, suppose there is a table that stores information about people, and one of the fields is YearOfBirth, and an index is created on that field. A query with WHERE YearOfBirth < 2000 will start at the first page in the index (with, say, YearOfBirth = 1957) and read every page UNTIL IT READS THE FIRST PAGE WITH A ROW WHERE YearOfBirth is >= 2000: at point, no more pages will be read, because no more rows need to be read. SQL Server knows that no other page that is so far unscanned can contain a row with YearOfBirth < 2000, so SQL Server stops.

  • @SandeepSingh-nn8lu
    @SandeepSingh-nn8lu 7 หลายเดือนก่อน

    Thanks Rajan - great course!

  • @maheshd11
    @maheshd11 2 ปีที่แล้ว +11

    Great job from you people.

  • @alekkerm4524
    @alekkerm4524 2 ปีที่แล้ว +2

    Great course, exactly what I needed!

  • @rogeriocastellano449
    @rogeriocastellano449 ปีที่แล้ว

    Congratulations, very comprehensive course.

  • @shivaganga9148
    @shivaganga9148 ปีที่แล้ว

    Awesome Rajan ji it is a great one very easy explanation

  • @P5toraskar1986
    @P5toraskar1986 ปีที่แล้ว

    Thank you so much for very imp this and if you have any more like this then please upload it.

  • @ashenupendra
    @ashenupendra 2 ปีที่แล้ว +1

    Very useful, Thank you !!!

  • @dark_joeha2k3r55
    @dark_joeha2k3r55 7 หลายเดือนก่อน

    great tutorial. Thank you very much!

  • @dhatsy2k
    @dhatsy2k ปีที่แล้ว

    Wonderful.. thank you so much 🙏

  • @NK-xw4uu
    @NK-xw4uu 2 ปีที่แล้ว +1

    Top class quality video

  • @samuelmbah8789
    @samuelmbah8789 2 ปีที่แล้ว +1

    I love you guys ❤️❤️❤️

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 4 หลายเดือนก่อน

    When he is comparing execution plans, why does he only look at estimated execution plans?? There can be a lot of useful information in the actual execution plan, which contains the actual values (actual number of rows read, etc.), which can differ a lot from the estimated values .... and such differences can be key in figuring out why a query runs slowly.

  • @rubeenaparakkal6787
    @rubeenaparakkal6787 ปีที่แล้ว +2

    Hi..very useful video..Is there any training available for SQL performance tuning in dba or architect level?

  • @amolmestry4255
    @amolmestry4255 2 ปีที่แล้ว +1

    Great course, help me a lot👍

  • @Santosh-bx2ub
    @Santosh-bx2ub 6 หลายเดือนก่อน

    Wonderful.

  • @puhgete
    @puhgete ปีที่แล้ว

    I'm running SQL server 2017 and I don't get any results back when I run the query for 2.6. Also, if I compare the estimated execution plans for both queries I don't see an entry for "Top" with the query using "WHERE NOT EXISTS". For the first issue, I would guess that I could delete all records from the CourseEnrollments table where the CourseOfferingId is 56637 or 58317. With the second issue, I can only guess that my version of SQL is coming up with a different execution plan, and I have no control over that? UPDATE: Looking at the video again, I saw that there is an Index Seek on the CourseEnrollments table, so it looks like the database backup is missing that. I added the following index and my execution plan now matches what is shown in the video:
    USE [Students]
    GO
    CREATE NONCLUSTERED INDEX IX_CourseEnrollments_CourseOfferingID
    ON [dbo].[CourseEnrollments] ([CourseOfferingId])
    GO

  • @NK-xw4uu
    @NK-xw4uu 2 ปีที่แล้ว

    At 1:59:11, you have shown an index as lastname,firstname,degreeid. Will the 3rd sql query be able to utilize this index for degreeid?

  • @metodievmetodiev
    @metodievmetodiev 6 หลายเดือนก่อน

    Hello @codeMechanic .. I am using M1 MacBook Air and was wondering whether I can do this course? I currently installed Azure Data Studio on Docker but not able to do the students.bak exercise thus won't be able to run the queries.. where can I find the data so I do an import?

  • @sicious1
    @sicious1 2 ปีที่แล้ว

    Thank you for sharing this good course.Can you share the ppt.

  • @happyvalley8454
    @happyvalley8454 ปีที่แล้ว

    Presentation was great.Can i get that ppt ?

  • @saplay3372
    @saplay3372 2 ปีที่แล้ว +1

    Great

  • @MayurManjal
    @MayurManjal 2 ปีที่แล้ว

    Request you to please make a Video on SOC or SIEM 🙏 please it will help lot of people like me who can't afford Expensive courses #freeeducationforall

  • @Dev_Jayasurya
    @Dev_Jayasurya 4 หลายเดือนก่อน

    Thanks

  • @AhmedMohamed-h3y5g
    @AhmedMohamed-h3y5g 2 หลายเดือนก่อน

    is this course gonna help in to learn
    msql server

  • @adwaitchavan6638
    @adwaitchavan6638 2 ปีที่แล้ว +3

    Can you please build a program for Postgres Performance essentials

  • @riju1956
    @riju1956 2 ปีที่แล้ว

    KYA BAAT HAI

  • @saadhussain4681
    @saadhussain4681 ปีที่แล้ว

    Which version of sql server we will learn in this vide?

  • @ShirleySinha-ps5lh
    @ShirleySinha-ps5lh 7 หลายเดือนก่อน

    is there any book from where we can study all these?

  • @Ravi-tq7mv
    @Ravi-tq7mv 2 ปีที่แล้ว

    Awesome

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 4 หลายเดือนก่อน

    Another codecamp course that doesn't indicate the version in the title or the description, which probably means it is an OLD version of SQL Server.

  • @celestialbeing4767
    @celestialbeing4767 2 ปีที่แล้ว +1

    The back bone in either backend and front-end.

  • @aramj90
    @aramj90 2 ปีที่แล้ว +2

    set speed to 1.5x⭐or you will sleep, although very profoundly and well

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      🙂 Thanks for the feedback

  • @mohammedabdulsattar125
    @mohammedabdulsattar125 2 ปีที่แล้ว

    Hi sir, the tools which u are used in this video we can also use in oracle sql developer or not???

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      Sorry, but this is only for Microsoft SQL Server. it will not be used for Oracle Database

  • @naveenchandran3023
    @naveenchandran3023 2 ปีที่แล้ว

    Please post pl/sql course it will help many people

    • @freecodecamp
      @freecodecamp  2 ปีที่แล้ว +6

      Here are some courses that may help you:
      SQL Course: th-cam.com/video/HXV3zeQKqGY/w-d-xo.html
      MySQL Course: th-cam.com/video/ER8oKX5myE0/w-d-xo.html
      University Database Systems Course: th-cam.com/video/4cWkVbC2bNE/w-d-xo.html

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      Noted

  • @soumadip_banerjee
    @soumadip_banerjee 2 ปีที่แล้ว +2

    ❤️

  • @juanignaciobrianoquintan7342
    @juanignaciobrianoquintan7342 2 ปีที่แล้ว

    Selent!!!!!!

  • @slahomar1497
    @slahomar1497 2 ปีที่แล้ว

    What's a great video, are concepts and strategies in this course applicable for PostgresDB ?? or for all SQL languages no matter whether it's SQL server or PostgressDB ????

    • @phenomenon7030
      @phenomenon7030 2 ปีที่แล้ว

      Did you find an answer for your question ?

  • @aybe8
    @aybe8 2 ปีที่แล้ว +2

    SSIS please!

  • @TonyTigerTonyTiger
    @TonyTigerTonyTiger 4 หลายเดือนก่อน

    20:03 A grammatical error. It says "a criteria". Criteria is plural. That is like saying "I saw a cats eating food.". The singular form of criteria is criterion. It should say either, "access data by a criterion..." or "access data by criteria....".

  • @__________________________6910
    @__________________________6910 2 ปีที่แล้ว

    Where are the links ?

  • @blueshardstudio705
    @blueshardstudio705 2 ปีที่แล้ว

    Hi freeCodeCamp! I'd like to ask you if you can make tutorial for C++ desktop development. Thanks 😀

    • @ahmadfaisal6356
      @ahmadfaisal6356 2 ปีที่แล้ว

      They already make it, go check it

  • @shawon791
    @shawon791 2 ปีที่แล้ว

    Does this work for MySQL database?

    • @Louisianish
      @Louisianish 2 ปีที่แล้ว +3

      Probably to an extent, but they are different database management systems. I’m sure a lot of this is applicable to other RDBMS like MySQL and PostgreSQL, though.

    • @ICodeMechanic
      @ICodeMechanic 2 ปีที่แล้ว

      No Shawon, it only works with Microsoft SQL Server

    • @michaelcheung6290
      @michaelcheung6290 ปีที่แล้ว

      ​@@ICodeMechanicoh why? Because these are implemented very differently in other RDBMS?

  • @dheeraj0076
    @dheeraj0076 2 ปีที่แล้ว

    We have only one like button 😒 Period

  • @ofirgaash
    @ofirgaash หลายเดือนก่อน

    bro became indian in minutes

  • @thanhpn7188
    @thanhpn7188 ปีที่แล้ว

    Can't send 100 likes to your course 😂

  • @lucasrocha633
    @lucasrocha633 2 ปีที่แล้ว +1

    I don't like SQL Server for example, I need to get a select result and generate script to insert based in values for the query to put in other table or database its impossible without payable tools. In MySQL its easier.

  • @vincentrayalba5936
    @vincentrayalba5936 2 ปีที่แล้ว +1

    Can you make solid works video plzzzz.

    • @Louisianish
      @Louisianish 2 ปีที่แล้ว +1

      I’m sure they’re working on it. Solid is a fairly new framework, right?

  • @oooooPizda
    @oooooPizda 2 ปีที่แล้ว +1

    That Indian speaking make me smile)))

    • @ash3rr
      @ash3rr 2 ปีที่แล้ว +1

      The Indian makes my ears cry.

  • @cleanzerg729
    @cleanzerg729 2 ปีที่แล้ว

    if youtube allows users to change the accent of the videos based on the scripts, that would be great

  • @h1permonth723
    @h1permonth723 2 ปีที่แล้ว

    I have a query, it works very speed but suddenly it's taking more time, I can optimize but I want to know the root cause why it works before why it's not now ?, can you please tell me what can I do to know the root cause

  • @nishikisan6675
    @nishikisan6675 2 ปีที่แล้ว

    hay bruh

  • @orion_yt
    @orion_yt 2 ปีที่แล้ว

    2nd

  • @adityavsx
    @adityavsx 2 ปีที่แล้ว

    Olaaa

  • @data_home
    @data_home 2 ปีที่แล้ว

    Writing...

  • @matthewlavancher7978
    @matthewlavancher7978 2 ปีที่แล้ว

    A+++++

  • @murselyuksektepe6418
    @murselyuksektepe6418 หลายเดือนก่อน +1

    Indian people english. Suddenly close the video ...

  • @u.roselli
    @u.roselli 8 วันที่ผ่านมา

    indian accent makes me sleep...

  • @waqar_ahmed3168
    @waqar_ahmed3168 ปีที่แล้ว

    You are watching the video 😭

  • @princesscrawforddd.6123
    @princesscrawforddd.6123 2 ปีที่แล้ว +2

    Your mother

  • @ritasing5858
    @ritasing5858 2 ปีที่แล้ว

    I have idea to make mobile application
    Would you like to invest and become a billionaire

  • @snehilkumar419
    @snehilkumar419 ปีที่แล้ว

    not working- download database backup files - students.bak is not visible to download. please check

  • @compliancerestorationandro4745
    @compliancerestorationandro4745 หลายเดือนก่อน

    The Students.bak file is empty