Was Thomas Jefferson more successful in the domestic or foreign policy?

It could be strongly argued that Thomas Jefferson was more successful in foreign policy, if only for the Louisiana Purchase. Jefferson was President from 1801 to 1809.