I find that when using the single table inheritance plugin, saves
include a "WHERE `kind` IN ('MySubclass')" clause (assuming the class
I'm saving is C and `kind` is my type column).  Since saves also
include the primary key in the WHERE clause, adding the `kind` check
seems superfluous.  Overall, the generated query might look something
like

UPDATE `a` SET `foo` = 6 WHERE ((`a`.`kind` IN ('MySubclass')) AND
(`id` = 500)) LIMIT 1

Also, as a lesser optimization, it seems like the `kind` check should
be = 'C', not IN('C'), when there's only one class being looked up.

Thoughts?  (this is using Sequel f07a68)

-- 
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.

Reply via email to