membrane sweeping ?

Dee
I'm 40 weeks pregnant and I'm wondering if it's a good idea to do the membrane sweep ? How long did it take for the first time moms for it to work if it worked & does it hurt ? Also how long does it take the doctor to do the sweep ?