This population-based study determined the association of people with dementia exposed to cholinesterase inhibitor medication and pacemaker insertion. Here, BCHE is linked to dementia.