You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2010/06/11 21:11:13 UTC

[jira] Created: (OPENJPA-1694) Detect conditions where OpenJPA can safely trigger metadata preloading.

Detect conditions where OpenJPA can safely trigger metadata preloading.
-----------------------------------------------------------------------

                 Key: OPENJPA-1694
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1694
             Project: OpenJPA
          Issue Type: Improvement
          Components: kernel
    Affects Versions: 2.0.0, 2.1.0
            Reporter: Rick Curtis


When openjpa.MetaDataRepository=Preload=true is configured, OpenJPA is able to eagerly load ALL metadata and remove locks from the repository. OpenJPA could do a better job to detect other conditions where we can eagerly load metadata. This can result in a much more scalable repository. 

One example that comes to mind is the <exclude-unlisted-classes> element that can be defined for a given persistence unit. When this element is encountered we know that all resources listed in the p.xml and orm.xml are all that we need to worry about.

I'm sure there are other cases where we could make the same leap but they aren't coming to my mind this afternoon.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.