The following tests were performed over a VPN to my SQL server using a slow
connection.
Note, that when the connection is fast - 10mbit or greater, there is not a
noticeable difference. So, this is not a server optimization issue.
In each these tests, a query was opened, then attached to a datasource/grid
and the grid had 10 records on the screen. The query is a "select fields
from view order by field". I tried simplifying the query to just 'select *
from basetable', but it makes no difference....
Using ADO 2.7 - OLEDB Provider for SQL Server
ADO - Client Cursor, Static
Open Query - 9.75 seconds, attach to Grid - immediate
Open Query - 10.64 seconds, attach to Grid - immediate
Open Query - 9.00 seconds, attach to Grid - immediate
ADO - Server Cursor, Keyset
Open Query - 3.39 seconds, attach to Grid - total time 16.33
Open Query - 3.51 seconds, attach to Grid - total time 17.10
Open Query - 3.53 seconds, attach to Grid - total time 18.56
ADO - Server Cursor, Static
Open Query - 2.49 seconds, attach to Grid - total time 12.58
Open Query - 2.61 seconds, attach to Grid - total time 12.84
Open Query - 2.92 seconds, attach to Grid - total time 13.89
BDE
Open Query - 0.73 seconds, attach to Grid - immediate
Open Query - 0.60 seconds, attach to Grid - immediate
Open Query - 0.62 seconds, attach to Grid - immediate
Any ideas? Remember, when running against a server over a normal
connection the difference is unnoticable. I would be glad to do any tests
anyone can come up with. This is a show stopper here. I will have to
stick with the BDE...ughhh....
Wayne