Don't wrap the metadata refresh script in a transaction because it could be a very long running operation and it's not good to leave a transaction open that long.
Don't wrap the metadata refresh script in a transaction because it could be a very long running operation and it's not good to leave a transaction open that long.