Ethereum uses two databases Memory database and Level Database. Is data stored in MemoryDatabase different than LevelDb? In what cases is one database used over other?
The question is different from -Which database(s) do the ethereum clients use and why? That question answers why LevelDb is used. This question is about how MemDB and LvlDb are different, why they are used, is the data stored in both databases different?