Sex after miscarriage

Was sex after miscarriage painful? How long did it take you to conceive again?