Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Johan De Meersman
to pages? Then just use the cursor-based api (I guess that's mysql_use_result) all the time, and you won't have any memory problems at all. If you need to retrieve pages (as in, the third block of 10 results, for instance) LIMIT is your friend. Do read the documentation on limit, thoug

Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Alex Schaft
On 2012/02/09 01:40 PM, Johan De Meersman wrote: - Original Message - From: "Alex Schaft" If I were to do a select count(*) from x where y prior to doing select * from x where y to get a number of records, how would this impact performance on the server itself? Would the first query be

Re: C api mysql_store_result vs mysql_use_result

2012-02-09 Thread Johan De Meersman
- Original Message - > From: "Alex Schaft" > > If I were to do a select count(*) from x where y prior to doing > select * from x where y to get a number of records, how would this impact > performance on the server itself? Would the first query be the one to > do the most processing, with

C api mysql_store_result vs mysql_use_result

2012-02-08 Thread Alex Schaft
Hi, I'm currently using mysql_store_result to retrieve all records of a query. This poses a problem however if say a couple of thousand records get returned, and the user gets no feedback during the progress. I now want to change this to mysql_use_result. The only catch is that you

Re: mysql_use_result issue: useless iterating over unused results

2005-01-11 Thread Karam Chand
I am not sure why they are doing it. You need to hack the protocol to understand it. Maybe some MySQL/network GURU will be able to help yuo. Regards, Karam --- Renald Buter <[EMAIL PROTECTED]> wrote: > On 01:55 Tue 11 Jan , Karam Chand wrote: > > Yup. > > > > This is a normal behaviour. mys

Re: mysql_use_result issue: useless iterating over unused results

2005-01-11 Thread Renald Buter
On 01:55 Tue 11 Jan , Karam Chand wrote: > Yup. > > This is a normal behaviour. mysql_free_result() will > result in bringing each unasked rows to the client and > freeing it up row by row. > This sounds to me as a useless "feature". What could be the reason for such wasting behaviour? > BT

Re: mysql_use_result issue: useless iterating over unused results

2005-01-11 Thread Karam Chand
am having this issue with mysql_use_result: it > seems it will iterate > over all unused results if I call > 'mysql_free_result'. The following > code illustrates this: > > mysql_query(&mysql,"SELECT * FROM > a_very_large_table"); > res = mysql_use_resul

mysql_use_result issue: useless iterating over unused results

2005-01-11 Thread Renald Buter
Hello list, I am having this issue with mysql_use_result: it seems it will iterate over all unused results if I call 'mysql_free_result'. The following code illustrates this: mysql_query(&mysql,"SELECT * FROM a_very_large_table"); res = mysql_use_result(&

mysql_use_result issue: useless iterating over unused results

2005-01-11 Thread Renald Buter
Hello list, I am having this issue with mysql_use_result: it seems it will iterate over all unused results if I call 'mysql_free_result'. The following code illustrates this: mysql_query(&mysql,"SELECT * FROM a_very_large_table"); res = mysql_use_result(&

Re: question about mysql_use_result()

2003-10-06 Thread Paul DuBois
Please reply to [EMAIL PROTECTED] (not to me personally), so that others can follow this thread. At 18:55 -0700 10/6/03, Don Cohen wrote: Paul DuBois writes: > >Perhaps I misunderstood the doc but I thought by using _use_result > >I was asking for the server not to send the next tuple until I as

Re: question about mysql_use_result()

2003-10-06 Thread Paul DuBois
At 18:09 -0700 10/6/03, Don Cohen wrote: Paul DuBois writes: > At 17:26 -0700 10/6/03, Don Cohen wrote: > >http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html > >says > > > > you must retrieve all the rows even if you determine in > > mid-retrieval that you've found the

Re: question about mysql_use_result()

2003-10-06 Thread Don Cohen
Paul DuBois writes: > At 17:26 -0700 10/6/03, Don Cohen wrote: > >http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html > >says > > > > you must retrieve all the rows even if you determine in > > mid-retrieval that you've found the information you were looking > > for.

Re: question about mysql_use_result()

2003-10-06 Thread Paul DuBois
At 17:26 -0700 10/6/03, Don Cohen wrote: http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html says you must retrieve all the rows even if you determine in mid-retrieval that you've found the information you were looking for. My question is: why? Because there is no provision

question about mysql_use_result()

2003-10-06 Thread Don Cohen
work very well. I type in mysql_use_result() and get back messages that don't mention it. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql_use_result

2003-01-02 Thread Gelu Gogancea
-mail address : [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Ritesh Nadhani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 02, 2003 8:34 PM Subject: mysql_use_result > Greetin

mysql_use_result

2003-01-02 Thread Ritesh Nadhani
Greetings... When I am using mysql_use_result API to retrieve results, I am always getting 0 value for the max_length member of MYSQL_FIELD structure which is returned by mysql_fetch_fields. But when I am using mysql_store_result, max_length has correct value. Is this normal ? Is there any way

mysql_use_result, out of sync, Mysql

2002-01-24 Thread Bernard Chambon
Hello What do to if mysql_use_result return NULL ? I can't understand ? I have only one query by connection, of course. I talk about SELECT statement in my query (not INSERT or anything else) Mysql run on linux. >From time to time mysql_use_result() return NULL. I throw and

No answer for previous mail : Use of mysql_use_result in ODBC driver

2001-02-14 Thread Patrick FICHE
Hi, I had not answer at my first mail... Sorry for posting it again but this is really important for us. -Message d'origine- De : Patrick FICHE [mailto:[EMAIL PROTECTED]] Envoyé : lundi 12 février 2001 18:09 À : Mysql Objet : Use of mysql_use_result in ODBC driver ? Hi all, I

Use of mysql_use_result in ODBC driver ?

2001-02-12 Thread Patrick FICHE
Hi all, I would like to change the do_query function in execute.c module in the ODBC driver to use mysql_use_result function instead of mysql_store_result function. There is currently some comments with an eventual problem in case of SQLRowCount function. To my mind, the only thing would be