RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: fredkelly
Site: http://fredkelly.net
I think it may be that it's more efficient to pass simple types to delayed methods as they get serialized and stored in the jobs table?
+1
Is there a reason for not passing the whole user to the delayed method? i.e. User.share_review(current_user, ...) that way it wouldn't be neccasary to call User.find again with the delayed method?
User.share_review(current_user, ...)
User.find
I think it may be that it's more efficient to pass simple types to delayed methods as they get serialized and stored in the jobs table?
+1
Is there a reason for not passing the whole user to the delayed method? i.e.
User.share_review(current_user, ...)
that way it wouldn't be neccasary to callUser.find
again with the delayed method?