Results 1 to 2 of 2
  1. #1
    Joetoben is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Posts
    2

    Table Indexes

    How do Indexes "speed up searches" but "slow down updates"? I see how to create an index, and I see that it may exclude duplicates, but what is the utility of the index? What is the purpose aside from excluding duplicates?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Joetoben View Post
    ...what is the utility of the index? What is the purpose aside from excluding duplicates?
    I do not know if I have a perfect answer but I like to index fields to speed up select queries. Any field that is a Key value will likely get an index. So, all PK's, all FK's, and most Business Keys. I may have a query that has a JOIN on a business key and this would be a situation that may benefit from indexing.

    After all of my PK's and FK's are indexed, I will identify Business Keys. My understanding of a Business Key is a value within a field that is recognizable to the User as a key or unique value. Some examples of Business Keys are Driver License numbers, Invoice numbers, vehicle VIN's, Tax ID, Employee ID, etc. If I have a search field for any of these business keys, I will consider Indexing the field. The more indexes I create, especially of text fields, the more memory needed to update the index during updates. Because a given field is indexed, there is additional overhead when updating the field because the index needs to be updated also. Instead of updating just the field, you are also updating the index.

    The advantage to having an up to date index is the index is used to locate a specific field (I believe it is a multidimensional array or a Dictionary Collection that considers both the column and row, but I do not know that for sure) within a table. It gets a serial number, so to speak, and this index is held in memory for immediate consumption.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need to update ODBC table with too many indexes
    By RandV in forum Programming
    Replies: 4
    Last Post: 11-19-2014, 01:08 PM
  2. Indexes in a Table
    By FB93 in forum Access
    Replies: 2
    Last Post: 03-18-2014, 07:27 PM
  3. Too Many Indexes
    By cbrsix in forum Database Design
    Replies: 22
    Last Post: 11-07-2011, 11:12 AM
  4. Indexes limited
    By DanW in forum Access
    Replies: 6
    Last Post: 11-12-2009, 03:12 AM
  5. Table Indexes
    By AnthonyT in forum Access
    Replies: 3
    Last Post: 06-04-2009, 06:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums