note 52982 added to function.mysql-num-rows
| From: | jsirovicATgmaledotcom at osu1 dot php dot net | Date: | Thu, 19 May 2005 15:34:03 +0000 |
| Subject: | note 52982 added to function.mysql-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89644@lists.php.net to get a copy of this message | ||
The reason it's just as slow is that to count that way as it is to fetch, minus the data
transfer.
Even when executing a limit query, when you ask it to fetch the number of total rows, it must scan
the whole table every time to calculate the count.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-num-rows.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52982
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52982&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52982&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52982&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52982&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52982&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52982&report=yes
Search -- http://master.php.net/manage/user-notes.php