Skip to content
Prev 22524 / 398502 Next

RMySQL fetch defaults to N=500?

Hi,
Jay Pfaffman wrote:
Hmm, help(fetch) says
...
Usage:

     fetch(res, n, ...)

Arguments:

     res: a `resultSet' object. This object needs to be the result of a
          `SELECT' or `SELECT'-like statement, as produced by `dbExec.'
          or `dbExecStatement.' SQL statements such as `INSERT',
          `DELETE', do not create result sets. 

       n: maximum number of records to retrieve per fetch. Use `n = -1'
          to retrieve all pending records. Some implementations may
          recognize other special values (RS-MySQL interprets `n = 0'
          to mean "use whatever default was set in the call to
          `MySQL'). 

    ... : any other database-engine specific arguments. 

and if you follow the link to help(MySQL) ...

Usage:

     MySQL(max.con = 10, fetch.default.rec = 500, force.reload = F)

Arguments:

max.con : maximum number of connections that we intended to have open.
          This can be up to 100, a limit defined at compilation time.
          Strictly speaking this limit applies to MySQL servers, but
          clients can have (at least in theory) more than this. 

fetch.default.rec: number of records to fetch at one time from the
          database. (The `fetch' method uses this number as a default.) 

force.reload: should we reload (reinitialize) the client code? Setting
          this to `TRUE' allows you to change default settings.  Notice
          that all connections should be closed before re-loading. 


so I think it's clear (but I'm open to suggestions).

Regards,

  
    
Message-ID: <20020809075932.A22600@jessie.research.bell-labs.com>
In-Reply-To: <200208090007.g7907h127631@aaalab.Stanford.EDU>; from pfaffman@relaxpc.com on Thu, Aug 08, 2002 at 05:07:43PM -0700