It is impossible to say exactly which treatment is best for heartburn because different treatments are used for different causes of heartburn.
Heartburn caused by gastroesophageal reflux disease, peptic ulcer, etc. can be effectively relieved and improved with standard medication and improvement of lifestyle habits. If conservative treatment is ineffective, endoscopic treatment or surgery still needs to be considered. If heartburn manifests after taking nitroglycerin, calcium channel blockers, anticholinergic drugs, nonsteroidal anti-inflammatory drugs, antidepressants, etc., they should be adjusted or discontinued under the guidance of a physician.