这是对这一问题的直接跟踪:。 什么是铁路上 j鱼的最快途径?
我的回答是数据库查询,并向JSON发出联合呼吁。 至少需要8秒的小型(1个甲基溴)数据集,而大型(3.5个甲基溴)则需要20秒。 这基本上将杀害我的想法。 我的使用者们不得不放弃这种等待。
I ve read about multi_json and oj and yajl, and I think I ve got them installed, but none of the ways I ve tried to activate the various gems in my Gemfile show any improvement in serializing time. How can I prove that I m using one over the other, so that I compare results between them? I can t find any way of outputting (to the Rails debug log or the JS console in the browser) which library might have gotten used for the actual render :json => @data call.