We have the aspdnsf_MonthlyMaintenance automated to run at the start of the month with a maintenance plan. I didn't notice the stored procedure doesn't include the cleanup of the profiles in the profile table for many months. Thankfully having a obscene amount of rows in this table does effect performance. It just made the database grow large enough for me to wonder why the database had grown so quickly.
To manually clean the table up I used a loop that deleted 10k rows at a time with a delay after each deletion. So the deletion didn't lock the table up and/or timeout during deletion. It ended up taking about 6-7 hrs to run the cleanup but it did the job with out breaking the site during the cleanup.
This leads to my question what are others doing to automate the Maintenance/cleanup of the profile table if at all? I am not too certain about using a loop in a maintenance plan would work with out timeout issues. I am somewhat debating just truncating the table in a maintenance plan at a none peak time but that seems like a heavy handed approach that could lead to other issues. Is there better way to handle this in automated way I'm not thinking of?