Remember Me
forgot your password?

Database Indexing – an Introduction

Databases are excellent data storage and retrieval tools, ranging from simplistic tables of information to complex, intricate collections of multiple linked databases. A database is created and named based on the particulars of its application, and stores data in tables consisting of an organized collection of rows and columns. Data may be manually entered into databases, but is more commonly written dynamically into databases by web sites or by connected software applications. Companies often maintain constantly growing databases containing data such as client information, financial figures and performance analyses, for instance, and the ever expanding nature of such databases warrants techniques for streamlining the process of locating specific pieces of information within them. Indexing allows for the rapid retrieval of specified data by queries, and is therefore a powerful tool for databases containing hundreds or even millions of records.

At initial set up, the creator of a database typically defines the primary key, which is a column within which the data in each row is unique. For example, a column containing client last names would not be identified as the primary key, as multiple entries may have the same name. However, a column containing unique client ID numbers could be designated as the primary key. When the primary key is defined, an index is actually created. When data from the column defined as the primary key is requested in the form of a query, the database automatically utilizes this index to quickly locate the requested data. However, the primary key is likely not the only column that will need to be searched for data. For queries that will be used frequently, an index can be added to the appropriate column to speed up the process of data selection. Indexes speed up the process of retrieval while lessening the workload the server must endure to perform the search.

Much like the way the index of a book makes finding a topic easier, database indexes make locating a queried piece of data easier. Instead of flipping through and reading each individual page of a book to locate a topic, you can refer to the book’s index and know where to look right away. Likewise, instead of a query asking each record in a database if it contains the information being sought, it can be directed by an index to the appropriate data.

Effective use of indexes requires establishing a balance between an efficient number of indexes and too many. Since indexes take up space, using too many can counteract the purpose by slowing the database down. Indexes may be unnecessary for smaller databases, where the queries can locate data quickly and easily. But indexes are dynamic and powerful tools for optimizing the performance of large databases.

Stephen J. Richards

About the Author: Stephen J. Richards has 25 years experience in Data Management and Information Technology. Mr. Richards is an expert on mainframe disaster recovery and data retention technology. For more information please visit http://www.neonesoft.com

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Databases Articles
  • More from Stephen J. Richards

Convert MySQL Database

By: Laptop Data Recovery | 10/12/2009
MySQL to MSSQL database migration tool converts rows, columns, entities, data types, attributes, constraints, primary keys or unique keys with existing database. MyQL to MSSQL migration application is easy to use and installation for converting whole MySQL database to MSSQL database records format. MySQL to MSSQL database converter tool is fully capable to convert or overwrite existing MSSQL database records to MySQL database records format.

Data Cleansing : Top 7 Reasons Why

By: Chris Smith | 09/12/2009
Why do you need to use a data cleansing service to tidy your customer data? Here's my top 7: Reduce Marketing Costs, Improved customer experience, More accurate analysis, Legal Compliance, Better targeted marketing, Environmental awareness, and Brand image. Read more...

General Discussion Forums – OFFWalk the Next Best Things in General Chat Forum

By: Mathew John | 09/12/2009
For Detailed information about General Discussion Forums and General/off topic chat visit our website http://www.offwalk.com.

OraDump Export Kit: direct export from Oracle dump files into most popular databases

By: Oleg Fedorov | 08/12/2009
This paper is about OraDump Export Kit, software pack developed by Intelligent Converters to migrate Oracle dump files to MySQL, Microsoft SQL, Microsoft Access, Microsoft Excel and CSV.

Intelligent type mapping for MS Excel export tools

By: Oleg Fedorov | 08/12/2009
The article presents "smart type mapping" algorithm implemented by Intelligent Converters in export tools for MS Excel and CSV.

How to Create an Easy-to-use Customer Database

By: Manny de Sousa | 07/12/2009
A database is handy when you want to effectively manage your customer information. You might not need one initially; however, once your business starts to soar or you want to make sure you provide the best quality customer service. After all, you have a much better chance of being able to sell something to an existing customer.

Java Application Scalability

By: Max J. Pucher | 06/12/2009
Could the substantial overhead in using sticky-load-balancing, transaction-safe Java caching and database clustering, plus the substantial overhead for parsing and validating the XML data for SOA not be avoided?

Online Compliance and Government Regulation

By: Stephen J. Richards | 28/07/2008 | Data Recovery
With business being conducted more and more so online and the use of the Internet having primary relevance in today’s society comes the need for regulation and protection in a way never needed before.

Outsourcing Technical Support

By: Stephen J. Richards | 22/07/2008 | Software
Technology, we all have to have it to run our businesses more efficiently. Although technology has allowed us significant increases in productivity and efficiency, they have not come without cost. The level of sophistication necessary to resolve technical issues has also increased; therefore, when a problem occurs, end users generally are not able to fix it themselves and must turn to professional support for help.

Databases and Maintaining Their Uptime

By: Stephen J. Richards | 19/06/2008 | Databases
Databases provide a convenient means of storing vast amounts of information, allowing the information to be sorted, searched, viewed, and manipulated according to the business needs and goals. A computer database relies upon software to organize the storage of data.

Centralizing Data Storage

By: Stephen J. Richards | 06/05/2008 | Computers
Management of business data is becoming ever more complex and important with increasing pressures of security, regulatory compliance, and corporate governance. Technology is allowing businesses to create and store exponentially more data.

Greening Up Your it Department

By: Stephen J. Richards | 18/04/2008 | Computers
We all want to improve our environment, and especially now, we want to be more conscientious of how our actions affect our planet. Taking simple steps in your place of business is no different than making steps at home.

How and Why Databases are Reorganized

By: Stephen J. Richards | 07/02/2008 | Computers
Administration of IMS full function and Fast Path databases can have a significant impact on the overall performance and usability of critical business applications.

Outsourcing and Archiving your Data

By: Stephen J. Richards | 16/01/2008 | Data Recovery
Whether a company relies heavily on database activity for critical everyday business operations or only for select requirements, the loss of data due to technological failure can have far reaching negative implications.

Backing Up your Computer Verses Archiving

By: Stephen J. Richards | 16/01/2008 | Data Recovery
The concepts of backing up a computer and archiving documents often get confused.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.12, 1, w1)