What is the way in rails to structure sql query to only select certain columns from the database, I have some large data fields which I want to avoid loading from continuous
Make use of :select construct. Try this:
:select
@itemlist = Item.select('name, address', conditions: { .... } )
For previous version of Rails:
@itemlist = Item.find(:all,:select => 'name, address', :conditions => { .... } )