frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Do we fear the serializable isolation level more than we fear subtle bugs?

https://blog.ydb.tech/do-we-fear-the-serializable-isolation-level-more-than-we-fear-subtle-bugs-5a025401b609
17•b-man•4d ago

Comments

lukas221•56m ago
I would argue that not using serialization isolation level by default is like not using a memory safe programming language by default.

Sure, sometimes it's too slow, but it should be the default.

Very few people can write correct database code at the other serialization levels. Most think they can, but it's harder than correct multi-threading, because databases do weird unintuitive things for performance.

jiggawatts•2m ago
I recently encountered a query that deadlocked on itself because it used a parallel execution plan and updated multiple indexes in a manner that the different threads could conflict with each other.

Naively one would expect that no individual UPDATE or INSERT statement could deadlock in isolation… but there you go.

mastermedo•34m ago
> Surprisingly, there are many more stories and publications about bugs caused by weak isolation levels than cases where stronger isolation levels caused impractically low performance.

I expected the article to substantiate the claim that serializable brings a large performance hit as in my experience it isn't so. The article basically makes the same point.

With serializable, you need to be a little careful not to have hot rows. Avoid them by sharding commonly written values. Another way to improve performance is to use true time for ordering non read-then-write transactions. It's a little finicky if the database doesn't provide such guarantees out of the box. Take Google's Spanner as an example. It offers the serializable isolation level and it's pretty performant (as long as you account for hot spots).

mjb•15m ago
> With serializable, you need to be a little careful not to have hot rows. Avoid them by sharding commonly written values

Unfortunately, serializable isolation requires detecting or preventing read-write conflicts (i.e. one transaction writing a row that a concurrent transaction has read). This is the performance impact of serializability: you need to be very careful what you read, because if you read too many rows you prevent any concurrent transactions from updating those same rows. Read-only transactions are OK (because MVCC), and read-only tables are OK (because there's no read-write conflict if a table is mostly read only), but tables that are both written and heavily read are where you get performance problems.

With snapshot isolation (e.g. Oracle's serializable, Postgres repeatable read), only write-write conflicts matter. There it doesn't matter what a transaction reads, and reads never need to block (or abort) writers. So what you say is true for snapshot, but not for serializable.

Interestingly, serializable's lack of need to detect write-write conflicts means that (in some implementations) it can be faster than snapshot for blind writes (i.e. anything that's not a read-modify-write under the covers).

How's Linear so fast? A technical breakdown

https://performance.dev/how-is-linear-so-fast-a-technical-breakdown
195•howToTestFE•3h ago•103 comments

Building from zero after addiction, prison, and a felony

https://gavinray97.github.io/blog/building-from-zero-after-addiction-prison-felony
214•gavinray•3h ago•104 comments

If LLMs Have Human-Like Attributes, Then So Does Age of Empires II

https://arxiv.org/abs/2605.31514
45•ketchup32613•3h ago•29 comments

Making peace with your unlived dreams (2023)

https://nik.art/making-peace-with-your-unlived-dreams/
88•herbertl•3h ago•37 comments

Silurus/ooxml: Pixel-faithful Office documents, rendered in the browser

https://github.com/yukiyokotani/office-open-xml-viewer
95•maxloh•4h ago•32 comments

Powering up a module from the IBM 604: an electronic calculator from 1948

https://www.righto.com/2026/06/ibm-604-thyraton-tube-module.html
59•elpocko•4h ago•18 comments

What is the purpose of the lost+found folder in Linux and Unix? (2014)

https://unix.stackexchange.com/questions/18154/what-is-the-purpose-of-the-lostfound-folder-in-lin...
92•tosh•2d ago•37 comments

The architecture of the internet creates risks for democracy

https://www.science.org/doi/10.1126/science.aei2409
58•Anon84•1h ago•60 comments

My automated doubt development process

https://www.alexself.dev/blog/automated-doubt
32•aself101•3h ago•14 comments

Show HN: I Derived a Pancake

https://www.absurdlyoptimized.com/recipes/pancakes/
8•bkazez•2d ago•0 comments

Do we fear the serializable isolation level more than we fear subtle bugs?

https://blog.ydb.tech/do-we-fear-the-serializable-isolation-level-more-than-we-fear-subtle-bugs-5...
17•b-man•4d ago•4 comments

Cloning a Sennheiser BA2015 battery pack

https://blog.brixit.nl/cloning-a-sennheiser-ba2015-accu-pack/
91•zdw•1d ago•15 comments

LLMs are eroding my software engineering career and I don't know what to do

https://human-in-the-loop.bearblog.dev/llms-are-eroding-my-software-engineering-career-and-i-dont...
726•poisonfountain•9h ago•684 comments

The 29th International Obfuscated C Code Contest (IOCCC) 2025 Winners

https://www.ioccc.org/2025/
350•matt_d•16h ago•85 comments

Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

https://github.com/devenjarvis/lathe
205•devenjarvis•10h ago•41 comments

Proliferate (YC S25) is hiring to building open source Codex

https://www.ycombinator.com/companies/proliferate/jobs/L3copvK-founding-engineer
1•pablo24602•5h ago

Why isn't the U.S. better at soccer?

https://www.natesilver.net/p/why-isnt-the-us-better-at-soccer
36•7777777phil•2h ago•73 comments

The complete IPv4 address space, mapped

https://worldip.io/
22•theanonymousone•3h ago•9 comments

Backrest – a web UI and orchestrator for restic backup

https://github.com/garethgeorge/backrest
66•flexagoon•5d ago•5 comments

A visual introduction to kernel functions

https://kelvinpaschal.com/blog/kernel-functions/
20•Kelvinidan•2d ago•1 comments

Anthropic, please ship an official Claude Desktop for Linux

https://github.com/anthropics/claude-code/issues/65697
407•predkambrij•9h ago•234 comments

A Fundamental Principle of Aeronautical Engineering Has Been Overturned

https://www.tohoku.ac.jp/japanese/2026/05/press20260512-02-DMR.html
3•mhb•5d ago•1 comments

Podman 6: machine usability improvements (2025)

https://blog.podman.io/2025/10/podman-6-machine-usability-improvements/
85•daesorin•8h ago•5 comments

Splash Is a Colour Format

https://www.todepond.com/lab/splash/
41•tobr•4d ago•46 comments

An Ohio Valley 100k-watt FM signal is severed in broad daylight

https://www.radioworld.com/news-and-business/headlines/an-ohio-valley-100000-watt-fm-signal-is-se...
121•pkaeding•20h ago•119 comments

The gamers taking on the industry to stop it switching off games

https://www.bbc.com/news/articles/c8e8e7g0r82o
86•Brajeshwar•5h ago•94 comments

Win16 Memory Management

http://www.os2museum.com/wp/win16-memory-management/
125•supermatou•2d ago•63 comments

Public Domain Image Archive

https://pdimagearchive.org/
234•davidbarker•21h ago•32 comments

I design with Claude more than Figma now

https://blog.janestreet.com/i-design-with-claude-code-more-than-figma-now-index/
224•MrBuddyCasino•17h ago•208 comments

sqlite: A CGo-free port of SQLite/SQLite3

https://gitlab.com/cznic/sqlite
37•tosh•8h ago•25 comments