Transaction Management for a Main-Memory Database