Cholecystectomy is performed while the patient is under general anaesthesia, which means they are asleep during the surgery and will not feel any pain.