
3 heavy updates on save
Reported by nairda | February 22nd, 2009 @ 07:10 AM
I've noticed that on every user_session.save Authlogic executes the same query three times. Additionaly they update basically every field in the users table (created_at, email, full_name, birth_date crypted_password etc.).
Is that a bug or feature? :)
Comments and changes to this ticket
-
Ben Johnson February 22nd, 2009 @ 12:32 PM
- State changed from new to resolved
That's how active record saves objects.
-
James Le Cuirot March 2nd, 2009 @ 11:05 AM
Actually I think this was related to the issue I raised in ticket #50. My initial suggestions would have led to only the changed attributes being resaved but now that Ben has moved the process into before_save, there should be at least one less save than what you're seeing now.
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.