Aaron Blohowiak on 24 Jan 2008 11:24:33 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] ActiveRecord: updating a single attribute

  • From: "Aaron Blohowiak" <aaron.blohowiak@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] ActiveRecord: updating a single attribute
  • Date: Thu, 24 Jan 2008 11:22:36 -0800
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=WT1VHZI73aV47JNQn7uXMffI7jl6VSvU1D4pKhWYsIo=; b=GkajlfIGvt/2o4jbsMd6r/VCxhpoWSGtVadTkHpWyCSr4CAm3vTtUl/cN/0B7nwQIAGne8yzDmKHbWkU4HqPwkhFdclctrp5ZNCIGueVq1b5ZAleHSC2rPsqcqrupmql5X2crSP1+5S+8PR1wjmw24qFLa3w4/Pqv2pnr0K00uQ=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

I've been known to be premature from time to time (get your mind out
of the gutter!) But I'd like to echo the following (have you
benchmarked?) I *highly* doubt this is where your app is slowing down.
If this is an exercise in curiosity, then by all means, proceed.
Otherwise, i fail to see the issue. If you really want "the speed",
just add a method to AR::B that implements the obvious. You could even
do some handy reflection on the table name &c. Remember, when it comes
to performance: "it's not a problem, until its a problem."

On Jan 24, 2008 11:01 AM, Evan Weaver <evan@cloudbur.st> wrote:
> Is the full update itself slow for you guys (i.e., have you
> benchmarked?) Or are you trying to update a value without initially
> loading the record.
>
> Evan
>
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk