Re: Long running DBI queries == no GUI interaction



* Grant McLean <grant mclean net nz> [2004-11-23 22:19]:
Is this a solved problem?

Not in the way of a ready-to-use module or some such.

I can envisage a fairly simple workaround that involves forking
a child to run the query and passing the results back over a
pipe or socket using IO events, but obviously would prefer not
to write the code if there's an existing solution.

That's the standard way to do it. This being Perl, the simplest
way would be to just use Storable to pass a fullblown data
structure across the divide. Combining that with IPC::Open2 or
::Open3 comes pretty close to a making your idea a solved
problem, in fact.

Regards,
-- 
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]