This is a neat idea. I want to take it further and precompile the entire DBMS binary for a specific schema.
Someone is already working on it: https://arxiv.org/pdf/2603.02081
How will you handle ALTER TABLE queries without downtime?
Someone is already working on it: https://arxiv.org/pdf/2603.02081