Date: 11/19/99
- Next message: Andi Gutmans: "[PHP-DEV] MySQL module for the Win32 PHP 4 Beta 3 binaries posted!"
- Previous message: oliver <email protected>: "[PHP-DEV] PHP 4.0 Bug #2770: phpinfo() gives wrong info about included gd support"
- Next in thread: Danny Heijl: "Re: [PHP-DEV] Problem with Informix and PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
For select statements, ifx_affected_rows() depends on information supplied by the Informix optimizer after preparing the query.
There are two caveats :
1. the optimizer can only give an estimate of the number, because the query result set has not yet been built, only the query plan has been decided based on statistical information and indexes. So the number will NEVER be exact, this is stated clearly in the PHP manual and in the Informix ESQL/C manual (description of the sqlca structure). It is only an estimate.
2. the statistical information used by the optimizer relies on the presence of this statistical information. If you never run "update statictics" on your databases, you will have poor performance because the optimizer has no accurate information to prepare the query plan, and the number returned by ifx_affected_rows() will be meaningless.
The number of rows returned by "ifx_affected_rows()" is only accurate for insert/update/delete type queries, never for select type queries.
Danny
---
- Next message: Andi Gutmans: "[PHP-DEV] MySQL module for the Win32 PHP 4 Beta 3 binaries posted!"
- Previous message: oliver <email protected>: "[PHP-DEV] PHP 4.0 Bug #2770: phpinfo() gives wrong info about included gd support"
- Next in thread: Danny Heijl: "Re: [PHP-DEV] Problem with Informix and PHP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

