As the database size increases so does the time to get records from it.
To test this, I added lots of data to my
access db so that its size was around 900 kb. I have to generate some reports and when i tested some of them took greater than 3 mins to be loaded.
My connection string is:
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.ConnectionString= "PROVIDER=Microsoft.Jet.OLEDB.4.0;" _
& "Password=sam;" _
& "User ID=sam;" _
& "DATA SOURCE=" & dbPath _
& "; Jet OLEDB:System Database=secw_Path;" _
& "Persist Security Info=True;"
and my recordset is as:
Set obj = Server.CreateObject("ADODB.Recordset")
obj.Open sql1,Conn
I agree that i am reading lot of data about 200 records from a table and about 30 more frm another table for each of these 200; in a nested loop. The sql statements are simple SELECT statements using only simple WHERE and ORDER BY statements
Is there a way that I can improve the efficiency of the script so that it is generated faster.
I am not sure of the dynaset object??
Can somebody please comment!!!
Edited by riya_singtel - 12 April 2005 at 5:13am