RE: [PHP] speed fastest?
| From: | Craig Vincent | Date: | Mon, 10 Jul 2000 15:07:16 +0000 |
| Subject: | RE: [PHP] speed fastest? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5736@lists.php.net to get a copy of this message | ||
> I use MySQL.
> mysql_query() is fastest or mysql_db_query() fastest ?
Although I've never benchmarked the two I would assume mysql_query would be
faster.
mysql_db_query() would need to make two database calls...one to specify the
database to use...and one to send the query.
mysql_query uses the database originally selected in mysql_select_db...hence
the database call is only made the one time.
Sincerely,
Craig Vincent