I have some simple code that just does this:
User.create(attributes)
But I noticed performance seemed a bit sluggish when creating a few
records in a row. So I turned on debug logging and I see this:
I, [2010-05-23T15:32:06.564780 #96222] INFO -- : BEGIN
I, [2010-05-23T15:32:06.565013 #96222] INFO -- : INSERT INTO `users`
(`username`) VALUES ('nwiger')
I, [2010-05-23T15:32:06.565377 #96222] INFO -- : SELECT * FROM
`users` WHERE (`id` = 368) LIMIT 1
I, [2010-05-23T15:32:06.565701 #96222] INFO -- : COMMIT
Does this mean Sequel is re-fetching the record after saving it? If
so, is there any way to disable this? Seems that if I want to
guarantee consistency, I should just call refresh() myself.
Thanks,
Nate
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.