Dolphin swim slots are limited and could be "sold out" before Discovery Cove as a whole is, so I'd time things based on how important the swim is to you.
Overall I've never had a problem even booking a few weeks before, but I don't know what August is like (kids off for summer, warmer weather = selling out more quickly?).