I have used MusicIp for years, managing duplicates. I loved how accurate it has been but it was a somewhat tedious process. I ruined some nice playlists in the process and I finally got into the habit of leaving depes for this only reason. Database is in the 100k.
With this script, I used a custom search with "MusicIp=same". Delete suggestion based on bitrate (lots of FLAC going on). Copy playlists while deleting in a single move et voilà : DB is 3000 entries lighter and my playslists are there, not counting play stats

Reading MusicIp analysis was a smart move indeed : i had no clue this could be done.
I don't know what performance users usually get but my system with both mm.db and temp files in RAM returned 3000+ dupes in seconds. Deletion from the raid took just several seconds as well.
Bottom line, I find this script flawless and smart. I couldn't dream of anything better.
In one word, "thank you"!
Roger.