Hacker News

Favorites Setup
Comment by artyomsv | original | SQLite as a Document Database (2020)
[−]artyomsv · 2026-08-30 Sun 09:53 UTC · link
Main practical difference is that you can put index on generated column, and on view you cannot, SQLite has no materialized views. Constraint part you understood right, NOT NULL on generated column fails at insert, and note that VIRTUAL costs nothing on disk but can still be indexed, so STORED is mostly for when expression itself is expensive.