Every operation will cause some discomfort.It also depends wether you are having it with the old traditional technique, the open repair or the relatively new, laparoscopic (key- hole) repair.
Open operation requires a bigger cut and also divides the nerves, this generally leads to a lot of discomfort and pain afterwards and a chronic pain in 8-10% cases. None of this happens with laparoscopic repair.
Make sure you ask your surgeon, which technique is being offered to you.
Hope this helps.