Initializing C3P0 connection pool takes 2 min

后端 未结 1 845
深忆病人
深忆病人 2021-01-12 04:26

I can\'t wrap my head around why the initialization of a c3p0 connection pool takes 2 min in my Hibernate application.

This is in my Hibernate.cfg.xml:



        
相关标签:
1条回答
  • 2021-01-12 05:14

    Set the property Hibernate.temp.use_jdbc_metadata_defaults to false in the configuration of your session factory. This will indicate to Hibernate using metadata dialect instead of the connection, which makes the slow startup. You must also configure an appropriate dialect for your driver.

    0 讨论(0)
提交回复
热议问题