Re:Actix-web 1.0 – A small, pragmatic, and fast web framewor...
by inferiorhuman on Wednesday June 05, 2019 @03:47PM
(#20108397)
it doesn't handle large tables well. (very long compile times etc)
By large tables you mean a large number of columns, not a large number of rows, right?
Re:Actix-web 1.0 – A small, pragmatic, and fast web framewor...
by killercup on Wednesday June 05, 2019 @04:51PM
(#20108996)
Correct.
Fun fact: The amount of traits implementations that need to be generated to support tables with 128 columns actually makes diesel an interest benchmark of the Rust compiler.
Re:Actix-web 1.0 – A small, pragmatic, and fast web framewor...
by runiq on Thursday June 06, 2019 @10:12AM
(#20114731)
Would the recent work on const generics help with this?
There are also plenty of drawbacks though: the extensive type system hacking can lead to very confusing compiler errors, it doesn't work well when you need to sometimes fall back to more dynamic db handling, and it doesn't handle large tables well. (very long compile times etc), and the documentation is quite sparse.
It's a robust solution for greenfield projects where you can design the schema partially with diesel in mind, but I wouldn't recommend it for existing DBs or projects that you know will grow large (eg 100+ column tables etc).
[1] https://github.com/diesel-rs/diesel