Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why SELECT * faster than COUNT(*) in network?
Message
From
07/12/2000 10:24:12
 
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00450286
Message ID:
00450375
Views:
35
Hi,
I just repeat the test:

select * = 0.8515625
select count(*) = 1.171875

Private Sub Command1_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim aaa As Long

Set db = OpenDatabase("f:\biblio.mdb") 'c on myserver
aaa = Timer
For i = 1 To 100
Set rs = db.OpenRecordset("select count(*) from authors", dbOpenSnapshot)
rs.Close
Next i
Debug.Print Timer - aaa

End Sub


Any idea?
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Reply
Map
View

Click here to load this message in the networking platform