To Index or Not To Index

  • Thread starter Thread starter Dave Elliott
  • Start date Start date
D

Dave Elliott

For performance issues, is it a good or bad idea to index some or all of the
fields, and what is the criteria to or not to index?

Thanks,

Dave
 
For performance issues, is it a good or bad idea to index some or all of the
fields, and what is the criteria to or not to index?

If a field is part of a relationship Access will automatically create
indexes. If you plan on joining on the field in a query, grouping on it,
or applying filter criteria against it, then it should be indexed.
 
Dave Elliott said:
For performance issues, is it a good or bad idea to index some or all
of the fields, and what is the criteria to or not to index?

In principle, it's a good idea to index those fields that will
frequently be used in query criteria or for sorting. This can make an
enormous difference in query performance, if the table is large. You
don't necessarily want to index every conceivable field, though, because
(a) the indexes themselves can take up significant storage space, and
(b) maintaining each index takes extra time whenever records are added
or deleted, or the values of their indexed fields are changed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top