ROR rolls into the enterprise
Friday, November 21st, 2008The New York Times used Ruby on Rails to pull together, analyze and display election results in near real time on one of its busiest Web traffic days ever. How did nytimes.com scale up Rails — a framework known for quick development turnaround but less than lightning fast performance?
“The secret is, we didn’t,” Ben Koski told a session at the Professional Ruby Conference in Boston Tuesday. Instead, Koski and others in the Times’ interactive new media group used low-level SQL commands for some key data-manipulation tasks. And while some Rails purists might frown upon choosing SQL over Rails’ own higher-level interactions with data, Koski said the direct SQL commands helped slash the time needed to process thousands of records from 30 seconds to about 1 second — a major boost when election result files were literally being updated by the minute.
(more…)
