Skip to content
Prev 68937 / 398513 Next

RMySQL query: why result takes so much memory in R ?

Christoph Lehmann wrote:
Those fields are each 8 or 20 bytes in size, so you're talking 12e6 
times 36 or about nearly half a Gig for each copy.  Presumably the code 
is storing more than one or two copies of the data.

Why don't you use fetch() to get your records in more manageable chunks?

Duncan Murdoch