Sign in
Log inSign up
Pankaj Tanwar

86 likes

·

9.6K reads

13 comments

Rahul Singh
Rahul Singh
Apr 1, 2021

so well explained 👏️

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 1, 2021

Thank you Rahul Singh

·
Maxi Contieri⭐⭐⭐
Maxi Contieri⭐⭐⭐
Apr 1, 2021

nice article and nice graphics !

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 4, 2021

Thanks.

·
Yeswanth kumar Bandaru
Yeswanth kumar Bandaru
Apr 2, 2021

Good article Pankaj. Can you throw some more light on last section indexing pitfalls. Especially why do we need index over amount also

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 4, 2021

Thank Yeswanth. Check out this great talk by Kai Sassnowski.

·
Shad Mirza
Shad Mirza
Apr 12, 2021

This was a great read. Followed you. And bookmarked this.

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 12, 2021

Thanks for your support Mohd Shad Mirza. It means a lot.

·
Victoria Lo
Victoria Lo
Apr 12, 2021

Wonderfully explained! :) Bookmarked!

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 12, 2021

Many thanks Victoria Lo!

·
Olubisi Idris Ayinde
Olubisi Idris Ayinde
Apr 12, 2021

This is great. Bookmarked

1
·
·1 reply
Pankaj Tanwar
Pankaj Tanwar
Author
·Apr 12, 2021
·
Michael Nielson
Michael Nielson
Aug 21, 2021

This is misleading:

But, It will still do a full table scan because we are using "amount" column to calculate the total. So, we need to put an index on "amount" column too.

Two indexes don't add together (you might look up covering index).

There are also very legitimate reasons why the database will ignore an index that could be applied and do a full table scan anyway.

You've explained a few behaviors of indexes but not really how they work.

·