svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-unbuffered-query.xml

From: Date: Wed, 30 Sep 2009 06:43:31 +0000
Subject: svn: /phpdoc/en/trunk/reference/mysql/functions/ mysql-unbuffered-query.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5008@lists.php.net to get a copy of this message
torben Wed, 30 Sep 2009 06:43:31 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288979 Log: Various grammatical fixes. Addresses bug #49720. Bug: http://bugs.php.net/49720 (Open) mysql_unbuffered_query Description misleading. Changed paths: U phpdoc/en/trunk/reference/mysql/functions/mysql-unbuffered-query.xml Modified: phpdoc/en/trunk/reference/mysql/functions/mysql-unbuffered-query.xml =================================================================== --- phpdoc/en/trunk/reference/mysql/functions/mysql-unbuffered-query.xml 2009-09-30 06:15:02 UTC (rev 288978) +++ phpdoc/en/trunk/reference/mysql/functions/mysql-unbuffered-query.xml 2009-09-30 06:43:31 UTC (rev 288979) @@ -3,7 +3,7 @@ <refentry xml:id="function.mysql-unbuffered-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>mysql_unbuffered_query</refname> - <refpurpose>Send an SQL query to MySQL, without fetching and buffering the result rows</refpurpose> + <refpurpose>Send an SQL query to MySQL without fetching and buffering the result rows.</refpurpose> </refnamediv> <refsect1 role="description"> @@ -14,17 +14,18 @@ <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> - <function>mysql_unbuffered_query</function> sends a SQL query - <parameter>query</parameter> to MySQL, without fetching and - buffering the result rows automatically, as - <function>mysql_query</function> does. On the one hand, this - saves a considerable amount of memory with SQL queries that - produce large result sets. On the other hand, you can start - working on the result set immediately after the first row has - been retrieved: you don't have to wait until the complete SQL - query has been performed. When using multiple DB-connects, you - have to specify the optional parameter - <parameter>link_identifier</parameter>. + <function>mysql_unbuffered_query</function> sends the SQL query + <parameter>query</parameter> to MySQL without automatically + fetching and buffering the result rows as + <function>mysql_query</function> does. This saves a considerable + amount of memory with SQL queries that produce large result sets, + and you can start working on the result set immediately after the + first row has been retrieved as you don't have to wait until the + complete SQL query has been performed. To use + <function>mysql_unbuffered_query</function> while multiple database + connections are open, you must specify the optional parameter + <parameter>link_identifier</parameter> to identify which connection + you want to use. </para> </refsect1> @@ -36,7 +37,7 @@ <term><parameter>query</parameter></term> <listitem> <para> - A SQL query + The SQL query to execute. </para> <para> Data inside the query should be <link @@ -69,10 +70,10 @@ <note> <para> The benefits of <function>mysql_unbuffered_query</function> come - at a cost: You cannot use <function>mysql_num_rows</function> and + at a cost: you cannot use <function>mysql_num_rows</function> and <function>mysql_data_seek</function> on a result set returned from <function>mysql_unbuffered_query</function>. You also have to - fetch all result rows from an unbuffered SQL query, before you + fetch all result rows from an unbuffered SQL query before you can send a new SQL query to MySQL. </para> </note>

« previous php.doc.cvs (#5008) next »