Use triggers for indexed models #2300