The stupid question is the question not asked | |
PerlMonks |
Streaming data using dancerby gsiems (Deacon) |
on Mar 14, 2013 at 17:54 UTC ( [id://1023517]=perlquestion: print w/replies, xml ) | Need Help?? |
gsiems has asked for the wisdom of the Perl Monks concerning the following question: Dear monks, I have a web-app written using Dancer (version 1.310) that, so far, works beautifully. However, I need to add a route that returns large datasets from a database. Because the datasets are too large to just "run query, grab results, return them" I'm looking at using streaming instead and am having issues getting things to work. I'm using the following test snippet that uses a simple loop to simulate doing the database retrieval and things aren't working.
The error that I'm getting is: Can't call method "streamed" on an undefined value at /opt/restful/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Dancer.pm line 452. Any ideas what's wrong here? Thanks
Back to
Seekers of Perl Wisdom
|
|