Indexing is useful for faster searching of data. Suppose you have a product table in your database with more than 2,00,000 records, now when you search a record on basis of product name, it takes time too long. Now if you want to perform your search faster. Create index for product_name fields by following command
CREATE UNIQUE INDEX AUTHOR_INDEX ON product_tbl (product_name DESC)
Now do a search again and lets enjoy the magic.
Behind this magic:
In the real world, indexing is also a type of database table, which keep primary key or index field and a pointer to each record into the actual table. User can not see the indexes, this is just used to speed up queries and will be used by Database Search Engine to search record faster.
0 Comment(s)