sex before or after ovulation

Which is more likely to be successful? I had sex the night before my ovulation day and stayed in the position with my legs up and a pillow underneath me (praying it will work)