D & C - Is it painful?

Hi everyone,
​Unfortunately I am starting to miscarry and will have a D & C tomorrow.  Is it painful and what is the recovery time? Thanks!