logoalt Hacker News

hxtkyesterday at 11:52 PM1 replyview on HN

Virtually all databases compile queries in one way or another, but they vary in the nature of their approaches. SQLite for example uses bytecode, while Postgres and MySQL both compile it to a computation tree which basically takes the query AST and then substitutes in different table/index operations according to the query planner.

SQLite talks about the reasons for each variation here: https://sqlite.org/whybytecode.html


Replies

drob518today at 1:52 AM

Thanks for the reference.