lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
9.08k stars 465 forks source link

[Feature Request]: Use prepared statements on Drizzle adapter #1695

Open crisog opened 1 week ago

crisog commented 1 week ago

Package

​@lucia-auth/session-drizzle

Description

Using prepared statements is significantly faster. For some of us that are using auth middleware, these queries are executed quite often resulting in a penalty in performance. More info about prepared statements can be found here.

A1X5H04 commented 1 week ago

@crisog Can I know how are you using middleware with lucia, or sharing the repo will also help me 🙏🙏