> As you mention mysql and postgres in the same breath I'm thinking this
> is just FUD, but if there's really something here I'm eager to know.


Foo.find(:all, :conditions=>["bar = ?", bar)


Without changing our API there's no way we could specify the data type
of a parameter to a prepared statement.  As the postgres optimizer
creates the execution plan when the prepared statement is created, it
wouldn't be able to decide (sanely) which indexes to use, and query
execution performance suffers.


-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to