Details
-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
1.9 M1
-
performance, cache
-
Unknown
-
Description
Each call to setDatabase() makes two calls to getDatabaseProductName, which in turn calls getMetaData on the connection, and which in turn is a very fat object retrieved from the database. This is a serious performance hit... I doubt that the database changes that often behind the server, so I guess it's safe to do a lazy initialization for an instance field.
Attachments
Issue Links
- duplicates
-
XWIKI-6990 Reduce the likelihood of having duplicate (hibernate) id for different documents and objects
- Closed