I'm using C#.Net to populate an .MDB database, and invoke the DAO 3.6 library from C# to compact the file nightly.
I'm now having a performance issue, and I'm wondering if the nightly compacting is what triggered it. (I can't remember when I first began the nightly compacting).
I've deleted the .MDB file and recreated it from scratch (again with nightly compacting) but the performance issue remains.
Queries that used to average 10 seconds are now taking from 100 to 400 seconds, which is totally unacceptable.
So my question is, does compacting ruin the indexes? If so, what is the recommended code for rebuilding the indexes after each compact?
I'm now having a performance issue, and I'm wondering if the nightly compacting is what triggered it. (I can't remember when I first began the nightly compacting).
I've deleted the .MDB file and recreated it from scratch (again with nightly compacting) but the performance issue remains.
Queries that used to average 10 seconds are now taking from 100 to 400 seconds, which is totally unacceptable.
So my question is, does compacting ruin the indexes? If so, what is the recommended code for rebuilding the indexes after each compact?