Hi Jerrry,
Index all foreign key fields. Access automatically creates an index (or
two!) for primary keys but does not do so for FKs.
You do not need to index foreign key fields when you use Tools >
Relationships to establish a relationship to a primary key field. Please see
the information under the Use indexes section of my multi-user document. You
can get duplicate indexes on the primary key field if you have the default
configuration under Tools > Options to Auto Index keys. This is a very poor
option in my opinion. Please see the following "Gem Tip":
http://www.access.qbuilt.com/html/gem_tips.html#AutoIndex
Index fields used in query criteria.
And for sorting.
...and maybe even Order By clauses.
Not recommended. An Order By is a sort.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
:
Tom answered your main questions. I'll put some more food for thought on your
plate.
The #1 performance problem with any relational database is poor design. Not
have the data properly normalized causes a developer to have to jump through
complex code and SQL where a simple, fast SQL would do the job.
You tables should be linked in the Relationship Window with Referential
Integrity selected. If you can't get RI to work, see the previous paragraph.
Index all foreign key fields. Access automatically creates an index (or
two!) for primary keys but does not do so for FKs.
Index fields used in query criteria. They are know as Where clauses in SQL.
Conversely remove any indexes not for a PK, FK, Where clause and maybe even
Order By clauses.