mardi 9 octobre 2018

How to speed up active record in rails3.2? My active record is taking more than 3 minutes for querying

This is my active record query for loading accounts with respect to branch,area and mandal.Could anyone help me for optimizing it?

 HpEntry.includes(:area, :mandal, :branch)
        .where(:BranchId => 58, :AreaId => 117, :MandalId => 741)
        .last

Aucun commentaire:

Enregistrer un commentaire