viewer stat & index optimize