• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Query Optimization

The Microsoft Jet database engine has a built-in query optimizer that uses statistics to determine which query strategy to use. For this reason, you should open, resave, and run your queries to recompile them if you add a significant number of records to your database—especially if the records are added to the table on which a query is based. You also should recompile them in the event of an index change.

Unfortunately, you can neither view Jet database engine optimization schemes nor specify how you want to optimize a query. However, you can use the Database Documenter to find out whether indexes are present and how unique an index is. Simply choose Tools, Analyze, Performance from the Access toolbar. Because the query performance analysis is closely tied to the Jet database engine, the Performance Analyzer suggests adding indexes only when they actually will be used by the Jet database engine to optimize the query.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint