Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-24 Thread Michael Schuerig
On Saturday 25 August 2012, Tim Olsen wrote: > On Friday, August 24, 2012 6:58:08 PM UTC-4, Aaron Patterson wrote: > > We could add the chunking middleware by default, but I'm not sure > > everyone would want that. > > If chunking middleware proves distasteful for too many, maybe just > having a

Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-24 Thread Tim Olsen
On Friday, August 24, 2012 6:58:08 PM UTC-4, Aaron Patterson wrote: > > On Fri, Aug 24, 2012 at 06:44:02AM -0700, Tim Olsen wrote: > > I have encountered a few problems with HTTP streaming which can be > traced > > to Rails always doing the chunked encoding itself: > > > > - Incompatible mi

Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-24 Thread Aaron Patterson
Hi Tim! On Fri, Aug 24, 2012 at 06:44:02AM -0700, Tim Olsen wrote: > Hello, > > I have been using the HTTP streaming feature for my company's website for a > few months now. It has significantly decreased the page load times for our > asset-heavy pages. > > I have encountered a few problems w

[Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-24 Thread Tim Olsen
Hello, I have been using the HTTP streaming feature for my company's website for a few months now. It has significantly decreased the page load times for our asset-heavy pages. I have encountered a few problems with HTTP streaming which can be traced to Rails always doing the chunked encoding

[Rails-core] Re: serialization and attribute assignment share commonality, so full decoupling is not DRY?

2012-08-24 Thread Gary Weaver
Thanks, Nick! Roar is really nice! Having a representer, something that is like a serializer but also defines what can be updated/assigned, is really nice. Since the model still defines what is writeable via mass assignment security (attr_accessible, etc.), even if you have different represente

[Rails-core] Re: Speeding up ActiveRecord

2012-08-24 Thread MikeGehard
Are these fixes in master or have they already been released in a 3.x version? On Wednesday, August 22, 2012 3:57:56 AM UTC-6, Bogdan Gusiev wrote: > > I've fixed both issues mentioned in this blog post. > If there is any other ideas how we could improve it - please explain them > here. > > On F

[Rails-core] Re: serialization and attribute assignment share commonality, so full decoupling is not DRY?

2012-08-24 Thread Nick Sutterer
Hi Gary, thanks for that post, I agree that accessible and (de-)serialization configuration should be done in one place. Have a look at Roar[1], here, representer modules define the document's structure. When deserializing, only those defined properties are considered, making it pointless to de