Chris, it has to be XML because I need to pass it directly to Adobe InDesign to place that data on document template. This is a book generation process, so it rarely runs. Like Jeffery mentioned above, maybe I can use pure xml and libxml2 to gain the speed just only this problem.
Thanks for all of your feedbacks. - Samnang On Tue, Nov 9, 2010 at 1:12 AM, chris <[email protected]> wrote: > On Nov 7, 10:57 pm, Samnang <[email protected]> wrote: > > Do you any ideas on how to optimize this problem? > > Does it need to be XML? JSON is much lighter and faster. You can > also use page caching with REST, so subsequent request is just like > Apache serving flat file. Maybe try to use some sort of compression > too? I'm betting the bottleneck is getting the data over HTTP and > loaded by the client, NOT AR getting it out of DB and building XML. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en.

