Archive › June, 2009

My little contribution to a rails plugin (sort of)

Getting your bug fix/code pulled into the main repo really gets you excited & satisfied. I never thought it could give me this much sense of enjoyment. Check it out. http://github.com/dmix/weekly_builder/tree/master

Comments ( 4 )

Includes & Eager Loading

I’m figuring out something in my rails app.  I’m figuring out which one’s the worst: Eager loading 100 rows of data you don’t actually need at the moment or 10 queries giving 10 result set at once? Here’s the code to explain it. 1 2 3 @event = Event.find(params[:event_id])   @event_attendees = @event.attendees.paginate(:page => params[:page], [...]

Comments ( 0 )