News for hackers. Stuff that matters.
Re:Rocket v0.4: Typed URIs, Database Support, Revamped Queries by hayd on Saturday December 08, 2018 @06:06PM (#18638062)
Isn't diesel being sync largely hid behind a connection/thread pool? Generally you want to limit the connections to the database anyway, so a connection pool is desirable...
Re:Rocket v0.4: Typed URIs, Database Support, Revamped Queries by TheCoelacanth on Sunday December 09, 2018 @02:53AM (#18639883)
Aren't those orthogonal concerns? A connection pool lets you share the same connection across multiple threads of execution. Async lets you share the same thread of execution across multiple actions waiting for IO to happen. For the best performance, you want both.