Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3557ACEE7 for ; Fri, 25 May 2012 12:05:09 +0000 (UTC) Received: (qmail 3483 invoked by uid 500); 25 May 2012 12:05:08 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 3164 invoked by uid 500); 25 May 2012 12:05:06 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 3138 invoked by uid 99); 25 May 2012 12:05:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 12:05:05 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of meyerjp3@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qc0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 12:04:57 +0000 Received: by qcsq13 with SMTP id q13so601887qcs.31 for ; Fri, 25 May 2012 05:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=4ILUMGwNHr0OtJ2wxS4iu6WhnPdPMuTFq5kxcQH3DXw=; b=nKIbtuiFHiN4j3mPnCz8ryf4to4RL8mEKDsX7iE1+jgBiPToiTBxMVsanZ5v4S1wBh Q6GLkLu5tXzxDdhz9Mn4iCIrQ8YWF1/8yucplujZQrZAHmJGX8/cB8VEdXiY2GWyvTek ciLz9RHTkAHJBNBivkMd7LX858fNrspCX6P6w7No/SSXviuBGdjbBI8t2zJNFUeOq/F5 RbRY419Jus3cpScfT4Eny3ljjlLT5mpDSxIUIIKHq9vohzn/SMOrxICOTFvmQsdNIpFk wINF8CRRU4ExQTcfsBixEnoJcjTvckQPkkNB2wVFh450LI9ageZj1J7b1HATWp9Jl8uG tcSg== Received: by 10.229.135.195 with SMTP id o3mr1166421qct.113.1337947477024; Fri, 25 May 2012 05:04:37 -0700 (PDT) Received: from R2D2 (c-75-75-1-250.hsd1.va.comcast.net. [75.75.1.250]) by mx.google.com with ESMTPS id gy9sm12716719qab.22.2012.05.25.05.04.34 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 May 2012 05:04:35 -0700 (PDT) From: "Patrick Meyer" To: "'Derby Discussion'" References: <00ac01cd39a0$174c7650$45e562f0$@gmail.com> <4FBE5CE8.9060601@oracle.com> <000f01cd39f4$db38d230$91aa7690$@gmail.com> <4FBF40F6.1020709@oracle.com> In-Reply-To: <4FBF40F6.1020709@oracle.com> Subject: RE: limit on the number of columns Date: Fri, 25 May 2012 08:04:26 -0400 Message-ID: <000f01cd3a6e$890df7e0$9b29e7a0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHw+K7ZTmIC0CoIfZVkwde0ncApcAKkXLIyAkT6U8kCGb8H95ZazeOg Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org It's hard to say. For my application, the end-user creates the tables. Most users are fine with the 1,012 limit but some "power" users will have extremely large datasets. I imagine that a few thousand would be fine. In looking through documentation of other database systems it looks like MySQL allows for 2,599 columns. MS SQL Server allows 1,024 for a non-wide table and 30,000 for a wide table. Thanks, Patrick -----Original Message----- From: Kristian Waagan [mailto:kristian.waagan@oracle.com] Sent: Friday, May 25, 2012 4:21 AM To: derby-user@db.apache.org Subject: Re: limit on the number of columns On 24.05.2012 23:33, Patrick Meyer wrote: > That would be excellent! I think it would be a great feature to have > in Derby. Hi Patrick, Can you say anything about how many columns would be needed to support these use-cases? Are we talking about a few thousand, ten thousand, or even more columns? Regards, -- Kristian > > Patrick > > -----Original Message----- > From: Rick Hillegas [mailto:rick.hillegas@oracle.com] > Sent: Thursday, May 24, 2012 12:08 PM > To: derby-user@db.apache.org > Subject: Re: limit on the number of columns > > On 5/24/12 4:26 AM, Patrick Meyer wrote: >> I am aware that Derby has a limit of 1,012 columns for each table, but >> many users of my application (it is a program for statistical >> analysis) have very large files that go well beyond this number of >> columns. Does anyone know of a strategy for using multiple tables to >> present one large "virtual" table to end users? Is there a way to >> chain tables together to have an endless number of columns? Is this >> something that can be done through SQL statements? Any advice, >> examples or documentation on such a strategy would be greatly >> appreciated. >> >> Thanks, >> >> Patrick >> > Hi Patrick, > > This appears to me to be an arbitrary limit in Derby, one which we could > investigate lifting. To track this issue, I have filed > https://issues.apache.org/jira/browse/DERBY-5781. This kind of change would > have to appear in a feature release. The 1012 limit also applies to the > number of columns in a SELECT list. This is another arbitrary limit which we > should consider lifting: > https://issues.apache.org/jira/browse/DERBY-5782 > > Thanks, > -Rick >