News for hackers. Stuff that matters.
Re:D1: Our SQL database by endisneigh on Wednesday May 11, 2022 @10:18AM (#31340324)
I guess I’m not understanding what the benefit is vs hosted Postgres. Also low latency and setup can be equally trivial - see supabase for example.
Re:D1: Our SQL database by simonw on Wednesday May 11, 2022 @11:55AM (#31341772)
Biggest benefit over hosted PostgreSQL is that you get SELECT queries that are measured in microseconds, because SQLite avoids needing network overhead per query.

https://www.sqlite.org/np1queryprob.html

Re:D1: Our SQL database by endisneigh on Wednesday May 11, 2022 @11:57AM (#31341798)
Wouldn’t D1 introduce network overhead?
Re:D1: Our SQL database by simonw on Wednesday May 11, 2022 @12:15PM (#31342019)
Yes for writes, but it shouldn't for reads: it looks like it works by replicating the full database down to each edge location where the code is running.
Re:D1: Our SQL database by jve on Wednesday May 11, 2022 @04:56PM (#31345666)
Hope this can give you some concrete answers: https://www.sqlite.org/whentouse.html