I'm definitely going to give you library a try Mike.

I was thinking about taking active record out of the mix.  Has anyone tried
just doing a db query and serialising the results to json?

I've got a object graph with about 400 objects (well, primary ones) and it
takes about 300ms to do a .inspect on it and about 900ms to do a to_json
with yajl on Rails 2.3.11.  It's a bit disappointing actually.

Mark

On Wed, May 25, 2011 at 9:43 AM, Mike Williams <[email protected]> wrote:

> On 25/05/2011, at 7:50 AM, Daniel wrote:
>
> > We've used representative (https://github.com/mdub/representative_view
> > and https://github.com/mdub/representative) for this - it used to be a
> > bit slow (esp on 1.8.7), but the latest release did wonders for
> > performance.
>
> Thanks for the plug, Daniel.  Good to hear the optimisation worked.
>
> Everyone else: ping me (on email, or @woollyams) if you have Representative
> questions and/or problems.
>
> The blog entry that PaulA referenced also calls out some other
> alternatives:
>
> https://github.com/inem/tequila
> https://github.com/abril/tokamak
> https://github.com/jbr/argonaut
>
> --
> cheers,
> Mike Williams
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
>


-- 
Mark Mansour
The easiest way to manage your Agile project
[email protected]
http://agilebench.com/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to