Hi, I eventually came up with almost the same code except I pushed the writing down to the model whereas you've pulled it up to the controller. I like the idea of a viewer (aka conductor or presenter) and will see if I can restructure the code to use such a construct.
Unfortunately my DB driver is not Mojo::Pg but is ODBC based and in some cases I'm streaming millions of rows of data. Initially I bundled up a few thousand rows before calling to_json to avoid having millions of callbacks on the stack since it looks like a recursive call to the callback but it doesn't seem to be called recursively. It is annoying not to have a way to just write to the output stream without resorting to callbacks, in this scenario. Thanks for your help. Allan -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
