updating indexes on models