IntermediateAbout 16 min

    NoSQL Database Models

    Read the full article on Substack

    7 min read.

    See one e-commerce order reshaped as a document, a key-value pair, and a wide-column row — and how each NoSQL family trades consistency for availability differently.

    Think of it this way: A document store keeps the whole order as one self-contained folder. A key-value store is a coat-check ticket — hand over the number, get the blob back, no peeking inside. A wide-column store is a spreadsheet where each customer gets their own sparse row of time-stamped columns.

    Documents in one collectionno query yet
    ord_8842: customer, items, address
    ord_8790: customer, items, address
    ord_9011: customer, items, address

    Each order is one document, with the customer, items and address nested inside it.

    1/3

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Which NoSQL family?

    Sort

    Sort each description into the data model it fits.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Document

    Drop items here

    Key-value

    Drop items here

    Wide-column

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    A document database stores a record as…

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going