I am confused on where to use '.find' and where to use 'where'. is there a difference in the performance during the execution of the query ??
example : converted the existing queries which are using .find as below :
FileOrFolder.find_by_fullpath(completePath, :select=>"id")
-->
FileOrFolder.where(fullpath: completePath).select(:id).first
Component.find(:first, :conditions=>["cluster_id = ? AND name = ?", cluster_id, key])
-->
Component.where(cluster_id: cluster_id, name: key).first