Skip to content

v0.16.4

Choose a tag to compare

@xgame92 xgame92 released this 07 Nov 15:27
d9b00ef

Reading a session takes one trip to the database instead of two. There is no migration in this release.

Performance

  • One query fewer each time a session is read. Better Auth read the session, then the person, as two queries, and each is a trip to D1's primary from wherever the Worker runs: measured at about 19 ms from Frankfurt, 109 from Virginia, 240 from Tokyo and 290 from Sydney with the primary in Eastern Europe. (#187)

If you run your own

  • Where your database lives matters more than this does. A D1 database stays where it was created, and every read and write of a session goes there. Nothing to do for this release, but if your people are far from it, that is where the time goes.