Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C482FD880 for ; Fri, 28 Sep 2012 18:27:07 +0000 (UTC) Received: (qmail 77242 invoked by uid 500); 28 Sep 2012 18:27:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 77197 invoked by uid 500); 28 Sep 2012 18:27:07 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 77188 invoked by uid 99); 28 Sep 2012 18:27:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 18:27:07 +0000 Date: Sat, 29 Sep 2012 05:27:07 +1100 (NCT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: <640333772.140410.1348856827593.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (DERBY-4831) Support for auto-calculated (virtual) columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-4831: ----------------------------------- Urgency: Low Labels: derby_triage10_10 (was: ) > Support for auto-calculated (virtual) columns > --------------------------------------------- > > Key: DERBY-4831 > URL: https://issues.apache.org/jira/browse/DERBY-4831 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.6.1.0 > Reporter: Uriah Eisenstein > Labels: derby_triage10_10 > > The suggestion is similar to generated columns, but with the column value not actually stored in the database, but rather recalculated whenever the column is accessed. > This saves storage space in return for additional processing. > It is also suggested to support creating indices on the calculated columns; this could be a partial solution to expression-based indexes (Derby-455). For instance, creating an index on an expression such as "upper (column)" requires Derby to recognize the expression in a query involving the column, so that it could take advantage of the index; this could be difficult for more complex expressions. Using a generated column would double the required storage for the original column. An auto-computed column could solve both problems. > (I don't know if there is any standard SQL syntax for defining such columns) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira