Slick 3.0 bulk insert or update (upsert)

There are several ways that you can make this code faster (each one should be faster than the preceding ones, but it gets progressively less idiomatic-slick): Run insertOrUpdateAll instead of insertOrUpdate if on slick-pg 0.16.1+ await(run(TableQuery[FooTable].insertOrUpdateAll rows)).sum Run your DBIO events all at once, rather than waiting for each one to commit before you run … Read more

How to get a list with the Typesafe config library

As @ghik notes, the Typesafe Config library is Java based, so you get a java.util.List[String] instead of a scala.List[String]. So either you make a conversion to a scala.List: import collection.JavaConversions._ val myList = modifyConfig.getStringList(“mylist”).toList Or (probably less awkward) you look for a Scala library. The tools wiki links at least to these maintained libraries: Configrity … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)