Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 2271 invoked from network); 16 Feb 2007 14:49:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2007 14:49:31 -0000 Received: (qmail 63909 invoked by uid 500); 16 Feb 2007 14:49:35 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 63854 invoked by uid 500); 16 Feb 2007 14:49:34 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 63822 invoked by uid 99); 16 Feb 2007 14:49:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 06:49:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Feb 2007 06:49:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF04A7141B8 for ; Fri, 16 Feb 2007 06:49:05 -0800 (PST) Message-ID: <5330696.1171637345961.JavaMail.jira@brutus> Date: Fri, 16 Feb 2007 06:49:05 -0800 (PST) From: "Christopher James Blythe (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Assigned: (DAYTRADER-25) Update decimal precision and indexes in ddl In-Reply-To: <18112417.1163533897113.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 [ https://issues.apache.org/jira/browse/DAYTRADER-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher James Blythe reassigned DAYTRADER-25: ------------------------------------------------- Assignee: Christopher James Blythe > Update decimal precision and indexes in ddl > ------------------------------------------- > > Key: DAYTRADER-25 > URL: https://issues.apache.org/jira/browse/DAYTRADER-25 > Project: DayTrader > Issue Type: Improvement > Reporter: Christopher James Blythe > Assigned To: Christopher James Blythe > Priority: Minor > Attachments: daytrader-25.code.patch, daytrader-25.schema.patch > > > While working with previous versions of Trade, I found that the monetary values stored in the database could overrun the decimal precision defined in the schema (10,2) if allowed to run for an extended period of time. This would result in SQL exceptions related to data conversion. > To prevent this we increased the decimal presion to (14,2) > We also found that some of the indexs were not necessary and that others should be added. > In addition to the primary keys, here are the indexes we found to be the most useful... > CREATE INDEX a.profile_userid on accountejb(profile_userid); > CREATE INDEX h.account_accountid on holdingejb(account_accountid); > CREATE INDEX o.account_accountid on orderejb(account_accountid); > CREATE INDEX o.holding_holdingid on orderejb(holding_holdingid); > CREATE INDEX o.closed_orders on orderejb(account_accountid,orderstatus); > Will wait to submit a patch until the fate of Daytrader-14 is determined. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.