J
jeremy
10 minutes
A document database stores each record as a self-contained object with named fields, much like the JSON you already send over the web, instead of as a row split across tables. That shape fits a user account well: the email, the password hash, the roles and a couple of flags all belong to one person and are almost always read together. You reach for it when a record is naturally one lump; you would think twice when your data is mostly relationships between many kinds of thing.