Hi,
I've been trying to coax a bit of speed out of some of our applications. At present I do most (95%) of queries like this;
mycon.execute(mysql)
where mycon is an ADODB connection object and mysql is a sql query stored as a string variable. I do it this way because I find it convenient and easy to manage.
My question therefore is there any performance advantage to be gained from using a database object query such as;
docmd.OpenQuery("Query1")
I was thinking maybe access does some crafty optimisation/compilation when you save a query that it either doesn’t do in the first case because access/jet don’t know about this query until it is run or access/jet performs the aforementioned "crafty optimisation/compilation" at run time therefore adding an avoidable performance penalty.
Any help/opinion on this matter would be much appreciated!
I've been trying to coax a bit of speed out of some of our applications. At present I do most (95%) of queries like this;
mycon.execute(mysql)
where mycon is an ADODB connection object and mysql is a sql query stored as a string variable. I do it this way because I find it convenient and easy to manage.
My question therefore is there any performance advantage to be gained from using a database object query such as;
docmd.OpenQuery("Query1")
I was thinking maybe access does some crafty optimisation/compilation when you save a query that it either doesn’t do in the first case because access/jet don’t know about this query until it is run or access/jet performs the aforementioned "crafty optimisation/compilation" at run time therefore adding an avoidable performance penalty.
Any help/opinion on this matter would be much appreciated!