Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3719

Cache the database name in the Hibernate-based storage

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 1.9 M1
    • Old Core
    • 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

          Activity

            People

              tmortagne Thomas Mortagne
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: