Hi,
I am supporting a web based online management system with
DB backend: MS Access2000
IIS5.0/ASP3.0
The major problem is that the advanced search page doesn't respond when the query contains "<field1) NOT IN (select <field2> from...)". It seems the query runs very slow or experience some problem at the backend. So I tried to diagnose the problem by run some testing query against the Access DB directly.
I had a very weird problem by using a very simple query in the MS Access database (2000).
select * from contact where contactid not in (select contactid from contactprofile)
it takes almost 20-30 secs to return. I don't have much data in these two tables. (less than 5000 records for each table) I also found quite a few other queries are also quite slow by using "NOT IN". The advanced search page doesn't respond only when the query triggers the "NOT IN" sql. I have never seen such a problem before. I even import the data into MSSQL Server, but it works fine.
Is that something to do with MS Access DB or something is wrong with my data? (I have tried another PC, same problem)
Thanks in advance.
Brian
I am supporting a web based online management system with
DB backend: MS Access2000
IIS5.0/ASP3.0
The major problem is that the advanced search page doesn't respond when the query contains "<field1) NOT IN (select <field2> from...)". It seems the query runs very slow or experience some problem at the backend. So I tried to diagnose the problem by run some testing query against the Access DB directly.
I had a very weird problem by using a very simple query in the MS Access database (2000).
select * from contact where contactid not in (select contactid from contactprofile)
it takes almost 20-30 secs to return. I don't have much data in these two tables. (less than 5000 records for each table) I also found quite a few other queries are also quite slow by using "NOT IN". The advanced search page doesn't respond only when the query triggers the "NOT IN" sql. I have never seen such a problem before. I even import the data into MSSQL Server, but it works fine.
Is that something to do with MS Access DB or something is wrong with my data? (I have tried another PC, same problem)
Thanks in advance.
Brian