oshai
05/30/2018, 6:22 AMorg.jetbrains.exposed.sql.vendors.MysqlDialect
and with 10.0.2 we had 277725 instances when I took a memory dump. So it is either a leak or we are not using exposed as we should with the new version. Do you have an idea what can go wrong?tapac
05/30/2018, 8:30 AMoshai
05/30/2018, 9:27 AMtapac
05/30/2018, 9:34 AMobjects
, i.e. singletons. But as Dialect can have it's own state (dialect metadata depends on concrete database version you connect), this part was reworked and now you achieve new Dialect instance for each Database
.
So you may work with two different MySQL databases concurrentlyoshai
05/30/2018, 9:37 AMtapac
05/30/2018, 9:39 AMoshai
05/30/2018, 9:43 AMtapac
05/30/2018, 9:44 AMobject Settings {
val db by lazy {
Database.connect("")
}
}
oshai
05/30/2018, 11:43 AM