Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22071

JDBCMetaDataConfiguration should allow fetching of table names only

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • 4.4.0.Final
    • None
    • hibernate
    • None
    • devex #115 May 2016
    • 8

    Description

      I have a MySQL DB containing 40 tables. When I call org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC() it takes a considerably amount of time (minutes) when all I need are the table names. It seems that this method reads the entire mapping structure for all tables.

      This is where I am using it: https://github.com/forge/core/blob/master/database-tools/impl/src/main/java/org/jboss/forge/addon/database/tools/generate/DatabaseTableSelectionStep.java#L102.

      The HibernateToolsHelper class calls JDBCMetaDataConfiguration.readFromJDBC() here: https://github.com/forge/core/blob/master/database-tools/impl/src/main/java/org/jboss/forge/addon/database/tools/util/HibernateToolsHelper.java#L28

      Can we improve this class to return only the table names and avoid this extra amount of work?

      Attachments

        Issue Links

          Activity

            People

              kaers@redhat.com Koen Aers
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: