In log file:
SELECT * FROM lists WHERE (lists.
id = 1)
SQL (0.000000) BEGIN
List Update (0.000000) UPDATE lists SET
created_at = ‘2007-08-10
desc = NULL,
public = 0,
user_id = NULL,
name = ‘qwe’ WHERE
id = 1
SQL (0.031000) COMMIT
Why does every update fires a select first?
This seems very inefficient. Is there a work around? is this an accepted
fact in the rails community? For every write there will be at least one
read, how come this is the default behaviour. Should i just accept this
as a expense of using rails?
Any help is appreciated.