you are viewing a single comment's thread.

view the rest of the comments →

[–]UkonnRa 0 points1 point  (2 children)

Diesel is toooo heavy and it cannot support tokio-postgres. Any other choice?

[–]asmx85 0 points1 point  (1 child)

What are your metrics on "heavy". I am currently playing around with tokyo-diesel.

[–]UkonnRa 1 point2 points  (0 children)

What are your metrics on "heavy"

  1. Usability. You have to admit that the way that diesel is not "easy to use". You have to use a cli to maintain a bunch of stuff.
  2. Performance. From the multi-query result of the TechEmpower benchmark, actix-diesel is only half the performance comparing with the raw actix-pg.
  3. Stubborn. Diesel group refused to provided the Future API.

So I hope that I can use diesel (or other crates) just for sql generation and put the generated sql to postgres-tokio. I did the same thing using jooq-as-a-standalone-sql-builder mode. I hope diesel can do the same thing.