Implementation of in-memory db