Learning MySQL - Using Indexes

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • This tutorial covers the different ways you can create or remove indexes on the columns in your tables. Also discussed are the different types of indexes, what they are and why you would want to use them.
    MySQL playlist: • Learning MySQL - Getti...
    MySQL CREATE INDEX reference: dev.mysql.com/...

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

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

    Your voice is like Walter White from Breaking Bad !

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

    hey thanks a lot. I was so confused what indexing is. definitely not anymore!
    this is a very straight forward tutorial you made it so easy to understand.

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

    Dude, this video made my query like 1000% faster by just using indexes on specific items. Thank you for making this video. You are fucking awesome !

  • @davelaff73
    @davelaff73 3 ปีที่แล้ว

    This is very clear. Thank you for helping out a noob!

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

    this video is so helpful! I was confused about that you can create one index for multiple columns. You explained why it makes sense.
    And also that it can be bad to create many indexes because for every insert mysql is also creating these multiple indexes. Thanks!

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

    Fantastic Video Thank you Steve. As usual your lessons are a life saver.

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

    I remember more than 8 months ago I understood how webpack work due movie from this channel :)

  • @alokprusty1995
    @alokprusty1995 3 ปีที่แล้ว

    Thanks for the video, it really gave me a clarity on Indexes

  • @biliyonnet
    @biliyonnet 5 ปีที่แล้ว +3

    You really should've to make an "using indexes" course. This is more complex and more important than creating indexes. I mean that a baby can create indexes but not everyone can know how to use them.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 ปีที่แล้ว +3

      There is a ton of stuff that I havent added to this course. I only have so much time and I have a lot of topics to cover. This is an introductory course after all.

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

    Such well-explained tutorial. Thanks a ton!!

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

    It's extremely help full Steve.. Thanks a lot

  • @Android.26
    @Android.26 3 ปีที่แล้ว

    *** Excellent Tutorials ***

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

    VERY MUCH UNDERSTANDABLE THANK YOU....

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

    Great tutorial, thank you.

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

    Thank you Steve, it helped me a lot

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

    please make a detailed video explaining multiple indexes or too many indexes how it will improve or decline the performance

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  ปีที่แล้ว

      You can post tutorial requests in the comments here - th-cam.com/video/LCezax2uN3c/w-d-xo.html

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

    Great lessons, thanks!

  • @jitendraruley
    @jitendraruley 4 ปีที่แล้ว

    Thank you so much for making video Sir.

  • @7bluestars872
    @7bluestars872 4 ปีที่แล้ว

    A very helpful guide for indexes. Thank you a lot for this tutorial. Btw your voice is so similar to Christian Slater from Mr. Robot :)

  • @furkanayvaz4078
    @furkanayvaz4078 4 ปีที่แล้ว

    Thank you so much Steve, it helps me

    • @furkanayvaz4078
      @furkanayvaz4078 4 ปีที่แล้ว

      I want to ask you that can i use an index with same fields in several queries?

  • @kalifef5291
    @kalifef5291 4 ปีที่แล้ว

    thank you steve

  • @fash9340
    @fash9340 3 ปีที่แล้ว

    amazing, thanks

  • @amralkhatib5031
    @amralkhatib5031 5 ปีที่แล้ว

    thanks a lot thats really help

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

    While creating index I am face error of in valid key over data table size of, 300gb

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +2

      That's a fairly large table. Assuming that you are using InnoDB, here are the limits for tables with that engine - dev.mysql.com/doc/refman/5.7/en/innodb-limits.html (for version 5.7 of MySQL)

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +1

      @@MFaisalHafeez I don't use Whatsapp.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +1

      @@MFaisalHafeez sorry. I dont have a guide for that

  • @RaihanSabuj
    @RaihanSabuj 4 ปีที่แล้ว

    well explained, I am a bit clear now

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

    Cheers my fellow chimpin code puppy

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

    nice too helpingg

    • @MFaisalHafeez
      @MFaisalHafeez 4 ปีที่แล้ว

      plz share ur whatsapp no or email I need more information

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

    Hi Steve, I have a question. If I were to create 3 tables, added indexes to them, and then created a view table that has UNIONED ALL 3 of those tables (or combined all 3 of those tables into the table VIEW), will the VIEW of those 3 tables combined be able to utilize the indexes on those 3 tables?

  • @adilsaju
    @adilsaju 4 ปีที่แล้ว

    Awesome

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

    where can we get an indepth course on mysql from you? or can you refer some other

  • @myelibrary
    @myelibrary 3 ปีที่แล้ว

    A fantastic video, what does the ‘packed’ mean? Keep up the great work

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว

      Packed has to do with compression of certain types of columns. It is applicable to MYISAM tables.

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

      @@SteveGriffith-Prof3ssorSt3v3 thanks a lot for the quick reply

  • @moonfahim
    @moonfahim 5 ปีที่แล้ว

    Thank you Mr Steve ! it was very nice, But can you tell me brief what are the main differences of these 4 types of Indexes ?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 ปีที่แล้ว +2

      Unique just ensures that each value in the column is unique. primary key indexes are the unique AND identifying value for each row. FullText is, as the name implies, an index of all the text in a large text field. A plain index is an index on any field of any datatype. Indexes are just used on fields where you will be doing a lot of searching or filtering to improve efficiency.

  • @princebillygrahamkarmoker2122
    @princebillygrahamkarmoker2122 4 ปีที่แล้ว

    Really helpful thank you :v

  • @aadil4236
    @aadil4236 4 ปีที่แล้ว

    Are you using the word 'column' and 'field' interchangeably in the video..??

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 ปีที่แล้ว +1

      Most of the time yes. Field can be used when you are talking about each item a single row or about the column.

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

      @@SteveGriffith-Prof3ssorSt3v3 got it thanks Mr.griffith

  • @MFaisalHafeez
    @MFaisalHafeez 4 ปีที่แล้ว

    what is way to delete million of duplicates form column

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 ปีที่แล้ว

      Tables should be designed with keys and indexes to prevent the duplicates being added in the first place.
      If you have duplicates and need to figure out which ones to remove and which ones to keep then I would suggest writing a stored procedure for that task.

  • @TheCekobi
    @TheCekobi 3 ปีที่แล้ว

    Your voice is like Batman

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

    "CHAR" is short for character.... so is should not be pronounced like the char in charcoal, but rather like the char in character. I am not just making this up. My computer science teacher insisted upon this.

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

    Why does he have these many browsers lol

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 ปีที่แล้ว +2

      As a web developer I need to be able to test what I build across different platforms with different rendering engines.