Performing partial sorts on data before passing it to reducers in HiveQL queries to optimize the shuffle and reduce phases of MapReduce jobs.