Why Index?

A

Andy

I am using a table with almost a million records and redesigning a database
to run a series of queries which currently are very lengthily. Could someone
recommend where I could read up on indexing tables etc to help things run
more quickly?

Thanks
 
J

John W. Vinson

I am using a table with almost a million records and redesigning a database
to run a series of queries which currently are very lengthily. Could someone
recommend where I could read up on indexing tables etc to help things run
more quickly?

Thanks

Good indexing is critical and can make very dramatic improvements in
performance... but bad indexing can make things WORSE, especially for update
and insert queries. It's both a skill and an art, and can require some
thorough testing.

In addition to Duane's recommendation I'd take a look at Tony Toews' site
http://www.granite.ab.ca/access/performancefaq.htm. It's not specifically
about indexing but contains a lot of more general performance tips.
 
J

Jerry Whittle

Just because you create an index, it doesn't mean that Access will use it.
There's a Jet tool called ShowPlan which can show you how a query is run
including what indexes are used.

Showplan
http://articles.techrepublic.com.com/5100-10878_11-5064388.html

Besides indexing, sometimes it's just the way the query is written. For
example if I write an In/Not In clause and it's slow, I'll modify it into an
Exists/Not Exists or visa versa. Sometimes the difference is dramatic.
 

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

Top