Improved performance by looking for unique rows by first creating a random hash