TIL: Drizzle ORM supports prepared statements for better query performance
M
mindweave82 viewsFebruary 28, 2026
You can use db.query.prepare() to create reusable prepared statements. PostgreSQL only parses and plans the query once, then re-executes with different parameters. Up to 3x faster for repeated queries.