Overall, results in the cohort analysis were similar to those from the case–control analysis with a code for dementia or cholinesterase inhibitor exposure independently associated with a decreased risk of pacemaker insertion; with the risk in patients with both a code for dementia and cholinesterase exposure being very low (adjusted HR 0.63). This evidence concerns the gene BCHE and dementia.