Thank god, adding this technique to reform my previous unconcious(?) coding procedure. Knowing indexing is prolly the minimum requirement to become a Senior programmer. I was unconsciously aware of what indexing is, but now it is time to clearify what it is in detail.
Indexing is a technique used to improve the performance of database queries by creating data structures, called indexes, that allow for efficient retrieval of data.
General structure of how Database storage the data
According to the above image, the core concept is instead of going all over from the start to the end, ask the data if goes "left" of "right"
As you can see, data has been arranged.
Conclusion:
key:
adding non-clustering index on 'name' column
result
key:
reference:
https://www.youtube.com/watch?v=edpYzFgHbqs