You have a table containing a userID column and 2 function columns. The table has 100 million rows and 10's of thousands of users.
The problem is that each user has their function1 and function2 duplicated but in the opposite function order. I.E. User=1000 has F1=5, F2=10 but also F2=10, F2=5. So if you can filter off these duplicates you can save about 50% of the space this table is using.
What is the fastest way to filter out the duplicate functions for each user.