I would say that it has a lot to do with how long you were together, how you felt about the other person at the time of the break-up and how serious the relationship was.

I have relationships end where it took me awhile to get over thinking "what they hell was wrong with me that I was still with that loser???". LOL