From teiid-commits at lists.jboss.org Tue Nov 23 16:23:40 2010
Content-Type: multipart/mixed; boundary="===============2832250320506657398=="
MIME-Version: 1.0
From: teiid-commits at lists.jboss.org
To: teiid-commits at lists.jboss.org
Subject: [teiid-commits] teiid SVN: r2739 - in trunk:
documentation/reference/src/main/docbook/en-US and 1 other directories.
Date: Tue, 23 Nov 2010 16:23:40 -0500
Message-ID: <201011232123.oANLNegv025993@svn01.web.mwc.hst.phx2.redhat.com>
--===============2832250320506657398==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: shawkins
Date: 2010-11-23 16:23:39 -0500 (Tue, 23 Nov 2010)
New Revision: 2739
Added:
trunk/documentation/reference/src/main/docbook/en-US/content/updatable_v=
iews.xml
Modified:
trunk/build/kits/jboss-container/teiid-releasenotes.html
trunk/documentation/reference/src/main/docbook/en-US/Reference.xml
Log:
TEIID-1349 adding docs for updatable views
Modified: trunk/build/kits/jboss-container/teiid-releasenotes.html
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/build/kits/jboss-container/teiid-releasenotes.html 2010-11-23 20:=
30:27 UTC (rev 2738)
+++ trunk/build/kits/jboss-container/teiid-releasenotes.html 2010-11-23 21:=
23:39 UTC (rev 2739)
@@ -27,6 +27,7 @@
Highlights
- Subquery Optimization - added rewrite to INNER JOIN for applic=
able WHERE clause subqueries. Also added cost based SEMI and ANTI-SEMI join=
handling for applicable non-pushed WHERE and HAVING subqueries.
+
- Updatable Views - added support to perform simple pass-through=
and more complicated updates through views by default.
=
Modified: trunk/documentation/reference/src/main/docbook/en-US/Reference.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/documentation/reference/src/main/docbook/en-US/Reference.xml 2010=
-11-23 20:30:27 UTC (rev 2738)
+++ trunk/documentation/reference/src/main/docbook/en-US/Reference.xml 2010=
-11-23 21:23:39 UTC (rev 2739)
@@ -51,6 +51,7 @@
+
Added: trunk/documentation/reference/src/main/docbook/en-US/content/updatab=
le_views.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/documentation/reference/src/main/docbook/en-US/content/updatable_=
views.xml (rev 0)
+++ trunk/documentation/reference/src/main/docbook/en-US/content/updatable_=
views.xml 2010-11-23 21:23:39 UTC (rev 2739)
@@ -0,0 +1,57 @@
+
+
+%CustomDTD;
+]>
+
+ Updatable Views
+ =
+ Any view may be marked as updatable. In many circumstances the vie=
w definition may allow the view to be inherently =
+ updatable without the need to manually define handing of INSERT/UPDATE/DE=
LETE operations.
+ =
+ An inherently updatable view cannot be defined with a query that ha=
s:
+ =
+
+
+ A set operation (INTERSECT, EXCEPT, UNION, UNION ALL)
+
+
+ SELECT DISTINCT
+
+
+ Aggregation (aggregate functions, GROUP BY, HAVING)
+
+
+ A LIMIT clause
+
+
+ =
+ Any view column that is not mapped directly to a column is not upda=
table and cannot be targeted by an UPDATE set
+ clause or be an INSERT column.
+ =
+ If a view is defined by a join query or has a WITH clause it may st=
ill be inherently updatable. However in these situations there
+ are further restrictions and the resulting query plan may execute multip=
le statements. =
+ For a non-simple query to be updatable, it is required:
+ =
+
+
+ An INSERT/UPDATE can only modify a single .
+
+
+ To allow DELETE operations there must be only a single .
+
+
+ =
+ If the default handling is not available or you wish to have an alt=
ernative implementation of an INSERT/UPDATE/DELETE, =
+ then you may use to define procedur=
es to handle the respective operations.
+ =
+
+ Key-preserved Table
+ =
+ A key-preserved table has a primary or unique key that would remai=
n unique if it were projected into the result of the query. =
+ Note that it is not actually required for a view to reference the key co=
lumns in the SELECT clause. =
+ The query engine can detect a key preserved table by analyzing the join =
structure - which is currently required to be in ANSI join form. =
+ The engine will ensure that a join of a key-preserved table must be agai=
nst one of its foreign keys. =
+
+ =
+
\ No newline at end of file
Property changes on: trunk/documentation/reference/src/main/docbook/en-US/c=
ontent/updatable_views.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
--===============2832250320506657398==--