Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why SELECT * faster than COUNT(*) in network?
Message
De
07/12/2000 06:24:39
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Why SELECT * faster than COUNT(*) in network?
Divers
Thread ID:
00450286
Message ID:
00450286
Vues:
85
Hi,
Why SELECT * faster than COUNT(*) in network? I have a simple test as below:

FOR i =1 to 500
set rs = db.openrecordset('select * from mytabledbopensnapshot )
rs.close
NEXT i

it use 6 secs to finish.

However, if i use count(*)

FOR i =1 to 500
set rs = db.openrecordset('select count(*) from mytable',dbopensnapshot)
rs.close
NEXT i

it take 57 secs. why?

Thank you
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform