frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

What Is a Database Transaction?

https://planetscale.com/blog/database-transactions
68•0x54MUR41•3h ago

Comments

rishabhaiover•2h ago
It's an absolute pleasure reading planetscale blogs. I'm curious about what tool is used to make these visualizations?
bddicken•1h ago
Author here. Thank you! These visuals are built with js + gsap (https://gsap.com)
MHordecki•1h ago
I’ve found this article lacking. Like some other articles in this space, it introduces isolation levels through the lens of the phenomena described in the SQL standard, but I find that there’s a different, more intuitive approach.

I think it’s more tractable to define this problem space starting from the concept of (strict) serializability, which is really a generalization of the concept of thread safety. Every software engineer has an intuitive understanding of it. Lack of serializability can lead to execution-dependent behavior, which usually results in hard-to-diagnose bugs. Thus, all systems should strive towards serializability, and the database can be a tool in achieving it.

Various non-serializable levels of database transaction isolation are relaxations of the serializability guarantee, where the database no longer enforces the guarantee and it’s up to the database user to ensure it through other means.

The isolation phenomena are a useful tool for visualizing various corner cases of non-serializability, but they are not inherently tied to it. It's possible to achieve serializability while observing all of the SQL phenomena. For example, a Kubernetes cluster with carefully-written controllers can be serializable.

mika6996•1h ago
Then recommend a better explanation?
Rapzid•1h ago
https://aphyr.com/posts/327-jepsen-mariadb-galera-cluster

More notation, more citations, more better.

bddicken•59m ago
Notation is useful. Citations are nice for further reading. But I don't agree more of this makes for a better article!
peterclary•59m ago
Looks like the author is geoblocking in protest of the UK Online Safety Act (and fair enough).
bddicken•1h ago
Author here. This is good feedback.

The combination of transactions, isolation levels, and MVCC is such a huge undertaking to cover all at once, specially when comparing how it's done across multiple DBs which I attempted here. Always a balance between technical depth, accessibility to people with less experience, and not letting it turn into an hour-long read.

jaxr•19m ago
I love the work planetscale does on keeping this type of content accurate yet accessible. Keep it up!
lateforwork•24m ago
Most RDBMSs offer serializable isolation if you need it. Often you don't need it. The downside of using serializable isolation unnecessarily is reduced concurrency and throughput due to increased coordination between transactions.
zzzeek•58m ago
I think this is a great post to have but I'm going to make a critical usability suggestion:

* the videos should have "pause" and a "step at a time" control *

Even at the "half speed", without a deep knowledge of the context, the videos move way too fast for me to read the syntax that's invoking and line it up with the data on the left side. I (and im definitely not the only one) need to be able to sit on one step and stare at the whole thing without the latent anxiety of the state changing before I've had a chance to grok the whole thing.

this has nothing to do with familiarity with the concepts (read my profile). I literally need time to read all the words and connect them together mentally (ooh, just noticed this is pseudo-SQL syntax also, e.g. "select id=4", that probably added some load for me) without worrying they're going to change before watching things move.

please add a step-at-a-time button!

interlocutor•54m ago
A lot of database tools these days prioritize instant sharing of updates over transactions and ACID properties. Example: Airtable. As soon as you update a field the update shows up on your coworkers screen who also has the same table open. The downside of this is that Airtable doesn't do transactions. And the downside of not doing transactions is potentially dangerous data inconsistencies. More about that here: https://visualdb.com/blog/concurrencycontrol/

Attention Media ≠ Social Networks

https://susam.net/attention-media-vs-social-networks.html
162•susam•2h ago•66 comments

What Is a Database Transaction?

https://planetscale.com/blog/database-transactions
72•0x54MUR41•3h ago•12 comments

Iran students stage first large anti-government protests since deadly crackdown

https://www.bbc.com/news/articles/c5yj2kzkrj0o
47•tartoran•1h ago•13 comments

I put New Zealand behind a $1 paywall

https://rename.world/
33•kafked•1h ago•7 comments

Volatility: The volatile memory forensic extraction framework

https://github.com/volatilityfoundation/volatility3
18•transpute•2h ago•1 comments

Back to FreeBSD: Part 1

https://hypha.pub/back-to-freebsd-part-1
132•enz•8h ago•51 comments

How Taalas “prints” LLM onto a chip?

https://www.anuragk.com/blog/posts/Taalas.html
276•beAroundHere•20h ago•135 comments

Man accidentally gains control of 7k robot vacuums

https://www.popsci.com/technology/robot-vacuum-army/
23•Brajeshwar•48m ago•4 comments

We hid backdoors in ~40MB binaries and asked AI + Ghidra to find them

https://quesma.com/blog/introducing-binaryaudit/
20•jakozaur•42m ago•2 comments

The Four-Color Theorem 1852–1976

https://www.ams.org/journals/notices/202603/noti3305/noti3305.html
16•bikenaga•1d ago•0 comments

How I use Claude Code: Separation of planning and execution

https://boristane.com/blog/how-i-use-claude-code/
724•vinhnx•15h ago•456 comments

How far back in time can you understand English?

https://www.deadlanguagesociety.com/p/how-far-back-in-time-understand-english
637•spzb•4d ago•336 comments

Japanese Woodblock Print Search

https://ukiyo-e.org/
153•curmudgeon22•12h ago•24 comments

Gamedate – A site to revive dead multiplayer games

https://gamedate.org/
211•msuniverse2026•1d ago•29 comments

Show HN: Llama 3.1 70B on a single RTX 3090 via NVMe-to-GPU bypassing the CPU

https://github.com/xaskasdf/ntransformer
303•xaskasdf•18h ago•80 comments

Minions: Stripe's one-shot, end-to-end coding agents – Stripe Dot Dev Blog

https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
58•kiyanwang•2h ago•54 comments

Two Bits Are Better Than One: making bloom filters 2x more accurate

https://floedb.ai/blog/two-bits-are-better-than-one-making-bloom-filters-2x-more-accurate
154•matheusalmeida•5d ago•22 comments

ReferenceFinder: Find coordinates on a piece of paper with only folds

https://mutsuntsai.github.io/reference-finder/
36•icwtyjj•3d ago•4 comments

Evidence of the bouba-kiki effect in naïve baby chicks

https://www.science.org/doi/10.1126/science.adq7188
168•suddenlybananas•17h ago•54 comments

Unreal Numbers

https://lcamtuf.substack.com/p/unreal-numbers
39•surprisetalk•5d ago•7 comments

Claws are now a new layer on top of LLM agents

https://twitter.com/karpathy/status/2024987174077432126
351•Cyphase•1d ago•799 comments

Parse, Don't Validate and Type-Driven Design in Rust

https://www.harudagondi.space/blog/parse-dont-validate-and-type-driven-design-in-rust/
223•todsacerdoti•19h ago•59 comments

What's the best way to learn a new language?

https://www.bbc.com/future/article/20260220-whats-the-best-way-to-learn-a-new-language
38•1659447091•8h ago•34 comments

zclaw: personal AI assistant in under 888 KB, running on an ESP32

https://github.com/tnm/zclaw
215•tosh•1d ago•117 comments

How I launched 3 consoles and found true love at Babbage's store no. 9 (2013)

https://arstechnica.com/gadgets/2013/01/how-i-launched-3-consoles-and-found-true-love-at-babbages...
39•zepearl•3d ago•18 comments

CXMT has been offering DDR4 chips at about half the prevailing market rate

https://www.koreaherald.com/article/10679206
226•phront•1d ago•228 comments

Carelessness versus craftsmanship in cryptography

https://blog.trailofbits.com/2026/02/18/carelessness-versus-craftsmanship-in-cryptography/
56•ingve•4d ago•11 comments

The Dance Floor Is Disappearing in a Sea of Phones

https://www.bloomberg.com/news/features/2026-02-20/a-boom-in-electronic-dance-music-is-changing-c...
51•blondie9x•2h ago•47 comments

I verified my LinkedIn identity. Here's what I handed over

https://thelocalstack.eu/posts/linkedin-identity-verification-privacy/
1356•ColinWright•1d ago•462 comments

Coccinelle: Source-to-source transformation tool

https://github.com/coccinelle/coccinelle
110•anon111332142•1d ago•30 comments