Are there any difference calling run.db once:
val dbAction3 = for {
res1 <- dbAction1
res2 <- dbAction2(res1)
} yield res2
val res3 = db.run(dbAction3)
and multiple times:
val res3 = for {
res1 <- db.run(dbAction1)
res2 <- db.run(dbAction2(res1))
} yield res2
As far as I understand, there is no difference unless we use transactionally in the first one.