When a database user changes data in the database, the database system first keeps the changed data in the working memory then writes the data to the volumes (permanent storage) later.
Concepts of the Database System, How Databases Store Data and Log Entries