Surgery is typically considered when non-surgical treatments, such as medication, physiotherapy and lifestyle changes no longer provide relief. Joint replacement surgery for hips and knees can offer long-term respite and improved mobility.