creating an index field in a database by sandra landinguin
TRANSCRIPT
![Page 1: Creating An Index Field In A Database by Sandra Landinguin](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/1.jpg)
CREATING AN INDEX FIELD IN
A DATABASEcreated by Sandra Landinguin
![Page 2: Creating An Index Field In A Database by Sandra Landinguin](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/3.jpg)
DATABASE INDEX
DATABASE INDEX
![Page 4: Creating An Index Field In A Database by Sandra Landinguin](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/8.jpg)
Having a database index, makes your search faster
and easier !!!
![Page 9: Creating An Index Field In A Database by Sandra Landinguin](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022083002/558b9929d8b42ab8788b459e/html5/thumbnails/10.jpg)
QUESTIONS ???