Hacker News new | ask | show | jobs
by RiverCrochet 13 days ago
Calling the registry a database makes it seem better engineered than it really is.

Running queries on the registry like SQLite? Nope. The Windows registry internally from what I've been able to read is a weird reimplementation of a file system (a trivial database I guess but a real database lets you index on things other than name). It's compact but as far as I know completely unofficially documented.

(Most data structures with unique names or ids for each data item could trivially be considered databases, but generally if you say something is a database, you typically expect to create queries more sophisticated than "select data where name is X" and also expect to be able to create or use separate indexes to support those queries.)

The reputation of brittleness and danger of the registry is because Windows stores a lot of configuration parameters there that the kernel uses as boot, but because it's not a plain text file, comments explaining what the settings do can't be right there in the same place you're editing.