Only serializing. The db is kept in memory, and only deserialized on startup.
But why is this a problem at the scale I'm working with?