Update snapshot and index.