When I was training for tris and swimming a lot, I got it somehow. I hadn't done much swimming before and overtraining was all too easy. I'm afraid all they suggested was ice at first, later heat. Honestly, I just used whichever made it feel better.
_________________
The plural of "anecdote" is not "data".