I usually rack to a secondary at a week or two when the offgassing slows down. I only do this because I like to rack a fresh wort onto an active yeast cake. I typically run a series of beers, low to high gravity on one batch of yeast. By the time I get to an IIPA those little yeasties are really well trained and hungry. Now, my beers in the secondary will rest on that cake for 2 weeks to a couple of months, depends on how bad I need the carboys and IG. Short of actually forgetting a batch, I don't think you can hurt a batch by leaving it on the yeast.
Given this, sanitation is the biggest concern I have with all the handling my batches get. I always CO2 flush my fermenters, paranoid care any time the wort is below 130 deg. and EVERYTHING near the wort/beer goes through Star San. Don't Fear The Foam.
Tom