In a couple of projects I've had, dealing with large amounts of data and a couple of non-interlocking sql queries, I've often wished for a non-blocking DBI so I could prepare a query, have the DB server munch on it, and then when I needed to get the results, call the results using the normal methods, or get a function called through callback.
I've heard
rumors that DBD::Sybase does this, but I'm primarly using DBD::Mysql, although in some of my projects, that might be reason to switch to a different database.
Mac
mentions that he developed a module that forks off processes to handle the asynch processes, but at least to me, that seems kind of kludgy (and frankly, I'm not sure if I want to be building and tearing down child processes all that often.)
If any of you have faced this, and know of good solutions, preferably for DBD::Mysql, but for any database if it might be portable, I would be most pleased. (Don't hesistate to tell me to RTFM either... just tell me which manual.. ;-)