Magnesium Threonate is said to be the best type for memory issues.
Magnesium L-Threonate for the Enhancement of Learning and Memory in People With Dementia - Full Text View - ClinicalTrials.gov
My mag citrate is what I count on and my memory is good overall. But for those with issues, this type is recommended.