I know that Futures in Scala, when grouped in for comprehensions, run sequentially unless they are declared outside of the for comprehension (as this article explains). Do DBIOActions work the same way? e.g. in the following query, is query1
guaranteed to execute before query2
?
db.run {
for {
result1 <- query1.result
result2 <- query2.result
} yield (result1, result2)
}