假设我的模型(帐户)具有以下列 account_id、user_id、party_id、日期和名称
我执行:
Account.find_by_account_id_and_user_id_and_party_id_and_date_and_name(1,2,3,"2012-03-12","Venus")
和
Account.where(:account_id => 1, :user_id => 2, :party_id => 3,:date => "2012-03-28",:name => "Venus").limit(1).first
哪个会给我更好的表现?