Skip to content
Dev.to1 min read

What Actually Happens When You Call INSERT?

You call INSERT. The database says OK. You move on. That acknowledgment feels instant. It feels cheap. It feels like the database just... wrote something down. But between your INSERT and that OK, at minimum four distinct things happened that most engineers who use databases every day have never thought about: The write was recorded in a sequential log before it touched any data structure — so a crash wouldn't lose it At least one index was updated — and that update is more expensive than the in
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Get the 10 best reads every Sunday

Curated by AI, voted by readers. Free forever.

Liked this? Start your own feed.

0
0