IntermediateAbout 19 min

    Data Engineering for ML

    Read the full article on Substack

    7 min read.

    Watch a row-major read touch every column to return four of them, price the same file as CSV and Parquet, and see stateful stream processing reuse 29 days of work a batch job throws away every night.

    Think of it this way: A filing cabinet versus a card index. If you usually want everything about one person, file by person. If you usually want one field about everyone, file by field. Choose wrong and every query walks past ninety-nine things it did not want.

    features →
    ↓ rows

    Reads all 12 columns to get 4; 8 are read and thrown away.

    Check your understanding

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

    Row-major or column-major?

    Sort

    Sort each trait into the storage layout it describes.

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

    Row-major

    Drop items here

    Column-major

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    CSV is row-major, which means consecutive elements in a row are:

    Done with this lesson?

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

    Keep going