Posted on 08/27/2008, 3:04 pm, by aaron, under
All,
Rails.
As we have been internally discussing how to scale our databases from 10’s of millions of rows to 100’s of millions, database sharding came up.
Depending on your data model and your application, sharding data into tables by some natural key is great if any given request uses only one shard. FiveRun’s DataFabric seems [...]
Posted on 08/07/2008, 1:49 pm, by warren, under
All.
Although there is supposed to be a clear separation between views and controllers, often when it comes to helper functions, there is a small bit of overlap and there are situations where it’d be nice to simply use a few helpers from inside an action.
ActionController::Base.class_eval do
def with_helpers(&block)
template = ActionView::Base.new([],{},self)
[...]