Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of QueryManager cache of compiled datastore queries #1

Open
andyjefferson opened this issue Apr 11, 2016 · 0 comments
Open

Comments

@andyjefferson
Copy link
Member

The latest version of (org.datanucleus.store.query.)QueryManager allows storing and retrieval of compiled datastore queries. For example the new RDBMS query mechanism stores its compilation (the SQL, and mapping info for results and parameters) into this cache, and then retrieves it whenever a query needs compiling to check if we already have one compiled for that datastore. Would make sense for the LDAP plugin to make use of this.

What you store in the datastore-specific compilation object is up to you - e.g see the RDBMS case at
http://datanucleus.svn.sourceforge.net/viewvc/datanucleus/platform/store.rdbms/trunk/src/java/org/datanucleus/store/rdbms/query2/RDBMSQueryCompilation.java?revision=4998&view=markup
just cast the object returned by the QueryManager.getDatastoreQueryCompilation method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant