Запис е-пошти: Adaptive Multi-Grained Buffer Management for Database Systems