Hello all,
I've been reading all the info on the site about increasing the speed for displaying query results. Testing speeds AFTER the first time accessing a DB for all 3 connection types (listed below) seem about the same for speed. Also, the recordset.open versus recordset.execute seem about the same for speed.
HOWEVER,when the db is FIRST queried, using any of these methods, the speed slows significantly. So the intial speed may be as much as 1 min to timing out after 2min,30 sec whereas after the initial try it will only take 2-8 sec depending on the database.
What is going on?! Why so much slower on the first try and not when I query the same db within about 5min of the first attempt?
connection strings that I tried out are listed below (generic names substitute the actual web address and db names)
''''dsn connection
set cn = Server.CreateObject("ADODB.connection")
cn.connectiontimeout = 0
dim strCn
'strCn = "DSN=mydata"
'cn.ConnectionString = strCn
'cn.open
'''dsn-less connection
'cn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" & _
' "Server=mywebaddress;" & _
' "DBQ=" & Server.MapPath("data\mydb.mdb")
'''ole jet (dsn-less) connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=E:\web\data\mydb.mdb;
I've been reading all the info on the site about increasing the speed for displaying query results. Testing speeds AFTER the first time accessing a DB for all 3 connection types (listed below) seem about the same for speed. Also, the recordset.open versus recordset.execute seem about the same for speed.
HOWEVER,when the db is FIRST queried, using any of these methods, the speed slows significantly. So the intial speed may be as much as 1 min to timing out after 2min,30 sec whereas after the initial try it will only take 2-8 sec depending on the database.
What is going on?! Why so much slower on the first try and not when I query the same db within about 5min of the first attempt?
connection strings that I tried out are listed below (generic names substitute the actual web address and db names)
''''dsn connection
set cn = Server.CreateObject("ADODB.connection")
cn.connectiontimeout = 0
dim strCn
'strCn = "DSN=mydata"
'cn.ConnectionString = strCn
'cn.open
'''dsn-less connection
'cn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" & _
' "Server=mywebaddress;" & _
' "DBQ=" & Server.MapPath("data\mydb.mdb")
'''ole jet (dsn-less) connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=E:\web\data\mydb.mdb;