Wikipedia
Purnaiah
Purnaiah (Purniya) (1746 - 27 March 1812), aka Krishnacharya Purniya or Mir Miran Purniya was the Dewan of Mysore. He served under Hyder Ali, Tipu Sultan, the British and Mummadi Krishnaraja Wodeyar. He was known for his skill with accounts, prodigious memory, proficiency in several languages and sheer hard work.
After Tipu Sultan's defeat, Mummadi Krishnaraja Wodeyar was educated and trained by Purniah.