in reply to a IO:SELECT problem
Assuming there's some good reason why that won't work, what you would need to be able to do is asynchronous database operations. Either a way to get a callback or a signal when results are ready, an implementation that guaranteed that some filehandle would be selectable only when there's results to read, or at least something you could poll with. You could look at your database's driver options to see if this is possible; if only the C version of the driver supports it, you could use Inline::C to talk to it.
Another option would be to proxy the results through something that would send you some kind of notification, or only make a filehandle selectable when results were ready. You could use some kind of RPC interface, like SOAP, or extend something like DBD::pNet to give it these capabilities.
But those are much harder than managing 200 threads or processes. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a IO:SELECT problem
by ablmf (Acolyte) on Jun 26, 2006 at 14:50 UTC | |
by sgifford (Prior) on Jun 26, 2006 at 15:39 UTC | |
by BrowserUk (Patriarch) on Jun 26, 2006 at 15:52 UTC | |
by ablmf (Acolyte) on Jun 26, 2006 at 16:09 UTC |