This Gist is related to the article The Rough Experience with Slick which points out performance problems with a Slick DSL query with 3 join
s. The article is discussed on Linkedin and in the Slick newsgroup
I've tried this query on Slick 3.0M1 for Postgresql.
The query that uses the join
DSL expression
val salesQuery = {
val salesJoin = sales join purchasers join products join suppliers on {
case (((sale, purchaser), product), supplier) =>
sale.productId === product.id &&
sale.purchaserId === purchaser.id &&