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.. ;-)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.