Results 1 to 5 of 5
  1. #1
    atzdgreat is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Sep 2019
    Posts
    27

    Multiple Index in table, advisable or not?


    Hi i have 60 columns in a table and i always used 7 columns for query. The only user who can insert update and delete in that table is the admin. The rest of user is for query only. The table holds 10k to 15k records a year. And 3 to 5 updates in a month. It took me sometime to load the data in my listview. So when i search in google that indexing column might improve the performance. I was wondering if you could enlighten me if it is advisable to index my 7 column or not. Thank you

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    Not sure what you mean/are saying. On one hand, it reads like you're asking about a 7 field composite index; on the other, some sort of index for a query that just happens to have 7 fields. Too many indexes can actually slow down performance.

    Then there is the "list view" comment. Does that mean this is about SharePoint?
    Maybe this will help?
    https://www.fmsinc.com/free/NewTips/...ndex/index.asp
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Indexes speed up searches significantly but slow down action queries such as updates.
    You can have separate indexes or a composite index for all 7 fields.
    However certain fields will not be helped by adding indexes e.g. Yes/No or text fields with very limited values such as M/F.

    I was also wondering about your listview comment. Did you mean listbox?
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    atzdgreat is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Sep 2019
    Posts
    27
    Thank u both for your reply. Actually i used excel vba. And my database is access. So everytime i make a query in access the result wil display in my listview. Meaning indexing 7 columns will not helping the performance of my query... Hmmmm anyways thank you for your answer 😊😊😊

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Meaning indexing 7 columns will not helping the performance of my query.
    it depends on your query. Indexes should be applied to fields that you a) join on to other tables and/or b) you regularly apply criteria or filters and/or c) you regularly sort. As Colin says, there are times where indexing has no real benefit - typically records that have a very limited range of values (such as booleans) or the number of records in the table is small.

    10-15k records is a pretty small number so it may be that indexes will not have a significant effect - again, depends on the query.

    You've voiced a concern about the performance of your query - how long does it take to run at the moment? and can you provide the sql to the query? Just a guess but a simple query with a couple of criteria on indexed fields might take less than a second to run on a table with 15k records.

    It may be the performance issue is not around the query, but the time it takes to populate Excel.

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

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2017, 08:44 PM
  2. Replies: 1
    Last Post: 09-30-2016, 05:36 AM
  3. Multiple field index over two tables
    By apk19 in forum Access
    Replies: 1
    Last Post: 05-15-2015, 05:35 AM
  4. Tab index multiple subforms
    By TToc2u in forum Forms
    Replies: 3
    Last Post: 02-23-2013, 06:00 PM
  5. Can you place Multiple Field Names to a Single Index?
    By VanillaAwesome in forum Access
    Replies: 2
    Last Post: 08-05-2012, 04:40 PM

Tags for this Thread

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