#30194 [NEW]: Mysqli Prepared Statements work very slow when CLOB\BLOB is in result set
| From: | phoeniks2k at mail dot ru | Date: | Wed, 22 Sep 2004 12:27:21 +0000 |
| Subject: | #30194 [NEW]: Mysqli Prepared Statements work very slow when CLOB\BLOB is in result set | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66550@lists.php.net to get a copy of this message | ||
From: phoeniks2k at mail dot ru
Operating system: All
PHP version: 5.0.1
PHP Bug Type: Performance problem
Bug description: Mysqli Prepared Statements work very slow when CLOB\BLOB is in result set
Description:
------------
If result set has clob\blob fields, retrieving data is VERY slow.
Query "SELECT SQL_NO_CACHE id, xml_clob FROM some_table WHERE id = 1"
executes 1000 times for about 0.4 seconds on my server;
But this query rewriten with statement execs 20 time for 6(!) seconds!!!
Every time i call:
exec, store result, fetch, free_result
P.S. SQL_NO_CACHE is used for clean noncached result times
Expected result:
----------------
STMT performance higher then normal query performance
--
Edit bug report at http://bugs.php.net/?id=30194&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30194&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30194&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30194&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30194&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30194&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30194&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30194&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30194&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30194&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30194&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30194&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30194&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30194&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30194&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30194&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30194&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30194&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30194&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30194&r=mysqlcfg