creating an index field in a database by sandra landinguin

10
CREATING AN INDEX FIELD IN A DATABASE created by Sandra Landinguin

Upload: sandrute3

Post on 25-Jun-2015

468 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Creating An Index Field In A Database by Sandra Landinguin

CREATING AN INDEX FIELD IN

A DATABASEcreated by Sandra Landinguin

Page 2: Creating An Index Field In A Database by Sandra Landinguin

DATABASE INDEXIndexes are one of the most important aspects of database design, yet one of the most underused in web applications. A database index can speed up a query by hundreds or thousands of times.

Page 3: Creating An Index Field In A Database by Sandra Landinguin

DATABASE INDEX

DATABASE INDEX

Page 4: Creating An Index Field In A Database by Sandra Landinguin

A DATABASE INDEX is a data structure that improves the speed of operation on a database table. I find it very useful, helpful and easy to use.

Page 5: Creating An Index Field In A Database by Sandra Landinguin

AND HERE IS WHY………….

Imagine, for example, if the phone book was not alphabetized and you had to find a name. It would take hours or days to find a name. This is exactly the kind of inefficiency that a database with no index has to contend with.

Page 6: Creating An Index Field In A Database by Sandra Landinguin

Lets take a look at another example..You have a customer table which contains customer names, numbers, addresses and other details. You can make indexes based on any information, such as the customers’ customer number, last name + first name (a composite field index based on more than one), or postal code. Then, when you’re searching for a particular customer or group of customers, you can use the INDEX to speed up the search.

Page 7: Creating An Index Field In A Database by Sandra Landinguin

If there would not be ANY database index, it would take you

a while to find my phone number….lol…

Sarah Jones (773) 465-5746 [email protected] Mary Smith (312) 345 – 4573 [email protected] Michael Johnson (847) 222 – 5685 [email protected] Jessica Thompson (312) 365- 4693 [email protected]

Page 8: Creating An Index Field In A Database by Sandra Landinguin

Having a database index, makes your search faster

and easier !!!

Page 9: Creating An Index Field In A Database by Sandra Landinguin

Using the INDEX speeds up the search. This increase in performance may not be noticeable in a table containing a hundred records; in a database of thousands of records it will be a BLESSING !!!

Page 10: Creating An Index Field In A Database by Sandra Landinguin

QUESTIONS ???