INDEXING:Being a developer, one of the most important point that we have to keep in mind is the optimisation. It is desirable that the queries in database returns the result fast as no-one like slow systems.Why indexing?Every time your web application runs a query, it will search through the rows linearly. As you can imagine, this can take a long time. Looking through every single row is very time consuming and not very efficient. It is fine for smaller tables but as the data grows, large number of rows need to be checked every time which will slow down the performance of database and hence the application crashes. That is when, Indexing comes into play.Conclusion: Tables increase in size and searching increases in execution time. What is indexing?Indexing is a process that helps you to access the data and retrieve the records in a database quickly. We can achieve indexing with the help of indexes. Indexes, a copy of selected columns of data from a table which contains a field value and a pointer.Working:Whenever we create the index of a column, basically, what the indexing process will do. It will create an another data structure that will contain a field value (the column values) and a pointer(the address to the record).In simple words, it will create a temporary table with the column values and the address pointing to each records. So, Using this temporary table, Instead of scanning the whole table it will directly scan the column with matching record.Please find the attached for more explanation.To be continued... - Study24x7
Social learning Network
58 followers study24x7 11 May 2020 07:34 PM study24x7 study24x7

INDEXING:Being a developer, one of the most important point that we have to keep in mind is the optimisation. It is desirable that the queries in database returns the result fast as no-one like slow systems.
Why indexing?
Every time your web application runs a query, it wil...

See more

INDEXING:Being a developer, one of the most important...
study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles