i want to know what exactly happens in behind scene when we apply indexes. how i am able to fetch faster results?
i tried referring the tutorials related to indexes but have got enough information from it?
any help would be welcome
thanks
i want to know what exactly happens in behind scene when we apply indexes. how i am able to fetch faster results?
i tried referring the tutorials related to indexes but have got enough information from it?
any help would be welcome
thanks
Your RDBMS applies a B-Tree data structure on that column/columns. column's data get sorted and the mid-value is chosen as a Root node, values less than the root node are arranged in the left subtree and values greater than the Root node get arranged in the right subtree, at higher levels data get stored in various fragments. So when you lookup for a value it finds the target using binary search. Indexes increase the size of the table, more indexes mean more in size.