Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61533 invoked from network); 21 Aug 2006 19:23:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2006 19:23:24 -0000 Received: (qmail 44163 invoked by uid 500); 21 Aug 2006 19:23:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 44123 invoked by uid 500); 21 Aug 2006 19:23:21 -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 44106 invoked by uid 99); 21 Aug 2006 19:23:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 12:23:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Aug 2006 12:23:21 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60DD57142F2 for ; Mon, 21 Aug 2006 19:20:17 +0000 (GMT) Message-ID: <14694143.1156188017394.JavaMail.jira@brutus> Date: Mon, 21 Aug 2006 12:20:17 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1674) Investigate reducing the number of classes & methods in DataDictionary used to represent system tables In-Reply-To: <21502259.1155318735206.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1674?page=comments#action_12429501 ] Daniel John Debrunner commented on DERBY-1674: ---------------------------------------------- Simple stats on class count and sizes in insane mode (from the classes folder, not size in the jar). Revision: 432856 Number of RowFactory classes 21 Size of RowFactory classes 169252 org/apache/derby/iapi/sql/dictionary Number of Dictionary api classes 47 Size of Dictionary api classes 216108 org/apache/derby/impl/sql/catalog Number of Catalog impl classes 36 Size of Catalog impl classes 360173 > Investigate reducing the number of classes & methods in DataDictionary used to represent system tables > ------------------------------------------------------------------------------------------------------- > > Key: DERBY-1674 > URL: http://issues.apache.org/jira/browse/DERBY-1674 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Priority: Minor > > Currently two classes exists for each system table, one to represent the table (e.g.SYSTABLESRowFactory) , one to represent a row (e.g. TableDescriptor) > Look at having a single row factory (CatalogRowFactory) and using polymorphism (method overloading) on the descriptor objects to perform the work > that is done today (e.g. converting a descriptor to and from a Row object). > In addition the DataDictionary has a specific method to drop each type of unique descriptor (e.g. dropSPSDescriptor, dropAliasDescriptor) > Would it be possible to have a single dropDescriptor(UniqueSQLObjectDescriptor) method and again use polymorphism on the descriptors. -- 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