Learned a lot about nested attributes and Rails

It’s been a frustrating night trying to figure out how accepts_nested_attributes_for, autosave, dirtyness, and Rails versions all fit together.  Going to try and summarize my findings and hopefully I’ll get it right. accepts_nested_attributes_for turns on autosave autosave will cause any loaded associations to be saved when save for the parent object is called the key …

Continue reading ‘Learned a lot about nested attributes and Rails’ »

Pay attention to the default IO scheduler

With recent versions of Ubuntu running as Xen DomU’s I’ve noticed that the default scheduler is deadline.  I’ve read documentation that noop should be the preferred scheduler.  However, I make use of ionice, as do disk intensive programs such as fcheck.  It’s not often noted but ionice only works with the cfq scheduler and because …

Continue reading ‘Pay attention to the default IO scheduler’ »