In my school of thought - Surgery should be the last treatment option and preventive life style modifications should be the first.
In treating joint pains, the first line of treatment would be avoiding painful activities and doing things easy. Next is minimizing or eliminating the factors causing Joint pains like increased Body weight and low muscle power secondary to sedentary lifestyle.
Rehabilitation / physiotherapy to increase your muscle power and function works wonders.