anybody using JDBI or HikariCP?
# server
a
anybody using JDBI or HikariCP?
a
We evaluated Exposed and JDBI and went with JDBI.
a
what DB? postgres?
a
yep
a
How are you doing connection pooling? Does JDBI only make one connection?
a
We are at the very beginning of the project and we have not set up connection pooling. We will though.
j
j
We use HikariCP all the time, very good and stable pool implementation
a
Been using JDBI+Hikari in production for a while. No issues at all, if that's what you're worried about. 🙂
t
also using jdbi+hikari
a
How do you model your DAOs when joins are involved? eg if I have a customer that can have many orders - and I have a customer dao and an order dao — how do I get the Joined relation?
a
I tend to just use IDs between two separate aggregate roots. So no real navigation within the domain. If you have like an order with an address I do all of that in the order dao.
a
@Anders Sveen so the order dao will query the address table?
a
Yeah. Or depending on the structure, just a join so we get a single query. If I have to make decisions based on two aggregate roots I put that in a service, or better yet I do order.smoethingMethod(customer) .