|Do you know where your variables are?|
Streaming data using dancerby gsiems (Chaplain)
|on Mar 14, 2013 at 17:54 UTC||Need Help??|
gsiems has asked for the
wisdom of the Perl Monks concerning the following question:
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?