UTI and Sex

Patient: I was diagnosed with a UTI recently and have been prescribed an antibiotic and pain reliever. How will having sex affect my recovery?

Doctor: