How to avoid this very heavy query that slows down the application?

前端 未结 9 702
日久生厌
日久生厌 2021-01-05 18:56

We have a web application running in a production enviroment and at some point the client complained about how slow the application got.

When we checked what was goi

9条回答
  •  迷失自我
    2021-01-05 19:29

    It's indeed coming from Hibernate and specifically org.hibernate.tool.hbm2ddl.TableMetadata. It's under each been used to validate the schema (table and column mapping). Apparently it's unnecessarily been executed on every spawned request or session instead of only once during application's startup. Are you for example not unnecessarily calling the Hibernate Configurator on every request or session?

提交回复
热议问题