MySQL Forums
Forum List  »  Perl

Re: dbi buffers results before returning?
Posted by: Tait Larson
Date: November 10, 2006 10:34AM

$sth->execute() doesn't return for a very long time (yes, the next command after $sth->execute() is $sth->fectchrow()). While I'm waiting for it to return I noticed that lots of packets are flowing from the mysqld machine to the machine running the perl process. The perl process has a huge memory footprint. I'm assuming that the perl DBD is buffering all results before returning from $sth->execute()

I think the mysql Connector/J mysql driver has support for what I'm looking for. Here's a quote from the mysql page describing Connector/J's functionality:

'The driver now also supports "streaming" result sets, which allows users to retrieve large numbers of rows without using a large memory buffer.'

I really don't want to rewrite a lot of my work in Java. Does anyone know if the mysql perl DBD has something similar to this?

Thanks,

Tait

Options: ReplyQuote


Subject
Written By
Posted
Re: dbi buffers results before returning?
November 10, 2006 10:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.