Refactored the UpdateIndex method in the View class so that it uses the RunInTransaction method.