You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Yip Ng (JIRA)" <de...@db.apache.org> on 2006/10/15 20:27:34 UTC
[jira] Created: (DERBY-1960) Handle null compilation schema to
improve statement cache mechanism
Handle null compilation schema to improve statement cache mechanism
-------------------------------------------------------------------
Key: DERBY-1960
URL: http://issues.apache.org/jira/browse/DERBY-1960
Project: Derby
Issue Type: Improvement
Components: SQL
Affects Versions: 10.3.0.0
Environment: Any
Reporter: Yip Ng
A compilation schema with null value indicates that the trigger action statement text does not depend on the current schema. This means:
1. It is safe to compile this statement in any schema since there is no dependency with
the CURRENT SCHEMA. i.e.: All relevent fields are qualified with a specific schema.
2. The statement cache mechanism can utilize this piece of information to enable
better statement plan sharing across different schemas; thus, avoiding unnecessary
statement compilation.
This is a follow-up work of DERBY-630. To improve the statement cache mechanism, the system needs to handle the null compilation schema in statement preparation logic. It may require some work on the SQL parser to determine whether the compiled statement depends on the CURRENT SCHEMA or not, so that the compilation schema can be properly set.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira