0

I have the code like following

Listing.search(
      Riddle::Query.escape(params[:search]),
      :include => params[:include],
      :page => page,
      :per_page => per_page,
      :star => true,
      :with => with,
      :with_all => with_all,
      :order => params[:sort]
    )

params[:include] contains the value like [:listing_images, :author, :category, :origin_loc]

I don’t know what was wrong here.

  • How is it 'not' working? Do you get an error messag? Do you get inconsistent results? do you get mistaken results? Do you not understand how to decode the results? Suspect need more details to know what the problem actully is. – barryhunter Nov 25 '16 at 12:21
  • @barryhunter : I have used bullet gem which shows N+1 query related issus and I used rails logs for debug N+1 queries – Premanandh Selvakumarasamy Nov 25 '16 at 14:37

0 Answers0