Improved transaction handling for index.