Re: How to limit Derby size on Disk?

2013-03-08 Thread Oskar Zinger
Hi Rick, I think it would be a great enhancement... I think all of the choices you have specified are good to have, but at the very least one should be able to do #1 (limit on the total space consumed by a database). Thanks, Oskar From: Rick Hillegas

Re: How to limit Derby size on Disk?

2013-03-01 Thread Rick Hillegas
On 2/28/13 2:34 PM, Oskar Zinger wrote: Is there a way to limit the size of the Derby database and how large it can grown on disk? Thanks, Oskar Sent from my iPhone Hi Oskar, I'm not aware of any useful way to do this. You can always use operating system controls to limit the size

How to limit Derby size on Disk?

2013-02-28 Thread Oskar Zinger
Is there a way to limit the size of the Derby database and how large it can grown on disk? Thanks, Oskar Sent from my iPhone

how to limit the derby db file size avoid eating up disk space?

2012-05-31 Thread Li, Yang C. (NSN - CN/Cheng Du)
no other way? How to limit the size of db file after large amounts of insert and delete operation? thanks. Best Regards L.Y.C

Re: how to limit the derby db file size avoid eating up disk space?

2012-05-31 Thread Bryan Pendleton
How to limit thesize of db file afterlarge amounts of insert and delete operation? One common technique for handling this pattern of activity, is to use a collection of tables, rather than a single table, and to drop entire tables rather than deleting rows from an existing table. For example

Re: how to limit the derby db file size avoid eating up disk space?

2012-05-31 Thread David Zanter
and experiencing the increasing size of db files. The .dat files in the seg0 directory eating up my disk space! I searched a lot about how to avoid the db file becoming huge but only one solution described in manual: Reclaiming unused space. Is there really no other way? How to limit the size of db

Re: limit on the number of columns

2012-05-25 Thread Kristian Waagan
columns? Regards, -- Kristian Patrick -Original Message- From: Rick Hillegas [mailto:rick.hille...@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

RE: limit on the number of columns

2012-05-25 Thread Patrick Meyer
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

limit on the number of columns

2012-05-24 Thread Patrick Meyer
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

Re: limit on the number of columns

2012-05-24 Thread Rick Hillegas
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

RE: limit on the number of columns

2012-05-24 Thread Patrick Meyer
That would be excellent! I think it would be a great feature to have in Derby. Patrick -Original Message- From: Rick Hillegas [mailto:rick.hille...@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

Re: can varchar for bit data size limit be exceeded?

2010-04-22 Thread George H
On Wed, Apr 21, 2010 at 4:00 PM, Knut Anders Hatlen knut.hat...@sun.com wrote: On 04/21/10 10:17 AM, George H wrote: Thanks for the extra info. I guess I am still stuck. I have then another question, how does one insert large BLOBs (ie., 1MB size) into derby just from the IJ console?  I know

Re: can varchar for bit data size limit be exceeded?

2010-04-21 Thread Knut Anders Hatlen
wondering if there is a way to extend the size limit or to get derby to accept it into a blob. Or is there really nothing I can do about it Hi George, You can insert hex strings into a BLOB column if you wrap it in a cast: ij create table t (b blob); 0 rows inserted/updated/deleted ij insert

Re: can varchar for bit data size limit be exceeded?

2010-04-21 Thread George H
for example and it allows me to send hex strings to a blob column. I'm wondering if there is a way to extend the size limit or to get derby to accept it into a blob. Or is there really nothing I can do about it Hi George, You can insert hex strings into a BLOB column if you wrap

Re: can varchar for bit data size limit be exceeded?

2010-04-21 Thread Knut Anders Hatlen
On 04/21/10 10:17 AM, George H wrote: Thanks for the extra info. I guess I am still stuck. I have then another question, how does one insert large BLOBs (ie., 1MB size) into derby just from the IJ console? I know we shouldn't compare derby to mysql but with mysql I can insert bytes into a

can varchar for bit data size limit be exceeded?

2010-04-20 Thread George H
is limited to a size of 32,672 bytes. Derby also does not let me insert hex strings into CLOB or BLOB columns either which can be much larger. I've tried doing this with MySQL for example and it allows me to send hex strings to a blob column. I'm wondering if there is a way to extend the size limit

Re: INTEGER size limit?

2008-10-21 Thread Knut Anders Hatlen
[EMAIL PROTECTED] writes: From http://db.apache.org/derby/docs/10.4/ref/rrefnumericlimits.htm The largest INTEGER is 2,147,483,647. ijdescribe t1; COLUMN_NAME |TYPE_NAME|DEC|NUM|COLUM|COLUMN_DEF|CHAR_OCTE|IS_NULL --

RE: INTEGER size limit?

2008-10-21 Thread Derby Discussion
is that if you know or suspect that you're going to hit a limit, you may want to take a step back, be less fancy and use an UPDATE CURSOR (Updateable cursor) and loop through the data and update the row based on the value being calculated. So instead of writing a query and then executing it, you write

Re: INTEGER size limit?

2008-10-21 Thread Rick Hillegas
? ;-) The point is that if you know or suspect that you're going to hit a limit, you may want to take a step back, be less fancy and use an UPDATE CURSOR (Updateable cursor) and loop through the data and update the row based on the value being calculated. So instead of writing a query and then executing

Re: limit, offset and random

2008-04-09 Thread Øystein Grøvlen
unludo wrote: OK thanks a lot for your answers. Regarding the 'ORDER BY RANDOM()', you also plan to have something similar? ORDER BY RANDOM() already works for me. Example: ij select i from t where i 5; I --- 1 2 3 4 4 rows selected ij select i from t where i 5 order by random();

Re: limit, offset and random

2008-04-08 Thread Dyre . Tjeldvoll
unludo [EMAIL PROTECTED] writes: Hello, I would like to use the following constraints at the end of some queries: SELECT a FROM B WHERE c = 'toto' ORDER BY RANDOM() LIMIT 10; LIMIT is a non-standard extension. Derby 10.4 (soon to be released) includes the SQL ROW_NUMBER function which

Re: limit, offset and random

2008-04-08 Thread Lance Andersen
I believe there is an enhancement request to add LIMIT to Derby. While it is not part of the SQL standard, most database vendor support LIMIT or something similar and it is easier to use than ROW_NUMBER. It would be a nice feature to consider. JDBC 4.1 we will provide a JDBC escape

Re: limit, offset and random

2008-04-08 Thread unludo
OK thanks a lot for your answers. Regarding the 'ORDER BY RANDOM()', you also plan to have something similar? regards Ludovic Lance Andersen-2 wrote: I believe there is an enhancement request to add LIMIT to Derby. While it is not part of the SQL standard, most database vendor support

limit, offset and random

2008-04-07 Thread unludo
Hello, I would like to use the following constraints at the end of some queries: SELECT a FROM B WHERE c = 'toto' ORDER BY RANDOM() LIMIT 10; It is supposed to return 10 values randomly from the B table. In fact I use that with postgresql. Also if someone knows if ejbql supports a random

Re: limit

2007-10-11 Thread Thomas Nielsen
Hi Sudhakar, Please note, as explained in DERBY-2998 and DERBY-581, that we are *not* implementing LIMIT (a dialect word), but rather following the SQL standard using the ROW_NUMBER() rank function. There is still a way to go, and as Brian says if you're interested in helping we'd

limit

2007-10-10 Thread sudhakar
Everything I've read so far says that Derby does not implement LIMIT which lets you write queries that return only so many rows in the resultset. Is this still the case or has this changed? Or are there initiatives to implement this? This seems to be a serious limitation when working with large

Re: limit

2007-10-10 Thread Bryan Pendleton
Everything I've read so far says that Derby does not implement LIMIT which lets you write queries that return only so many rows in the resultset. Is this still the case or has this changed? Or are there initiatives to implement this? DERBY-581 and DERBY-2998 are relevant, I believe. If you

Pagination support in Derby some thing like LIMIT in Mysql and Rownum in Oracle

2007-08-28 Thread ramakishore
We need to implement the pagination solution using the Derby DB. For example if a make a query select * from table a. I want to retrieve records from 1 to 100, 101 to 200, 201 to 300 etc.. using some thing like LIMIT with offset etc.. I am looking for any derby database features to support

Re: Limit on number of rows a table can hold?

2007-02-21 Thread David Van Couvering
of resources and application is much faster. but i am sure there is some body else's application that will be much faster under DB2 or oracle. Nurullah Akkaya On Feb 20, 2007, at 2:54 PM, Tim Troup wrote: Hi, Is there a limit

Re: Limit on number of rows a table can hold?

2007-02-21 Thread Nurullah Akkaya
body else's application that will be much faster under DB2 or oracle. Nurullah Akkaya On Feb 20, 2007, at 2:54 PM, Tim Troup wrote: Hi, Is there a limit on the number of rows a table can hold? I am planning on using derby as the RDBMS for a system

Limit on number of rows a table can hold?

2007-02-20 Thread Tim Troup
Hi, Is there a limit on the number of rows a table can hold? I am planning on using derby as the RDBMS for a system that will require tables to hold billions of rows. Thanks, Tim

RE: Limit on number of rows a table can hold?

2007-02-20 Thread derby
Billions of rows? Sounds like you'll need to rethink your design. Sure you can do it, but how efficient will it be? -Original Message- From: Tim Troup [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 6:55 AM To: Derby Discussion Subject: Limit on number of rows a table

Re: Limit on number of rows a table can hold?

2007-02-20 Thread A. Rick Anderson
will it be? -Original Message- From: Tim Troup [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 6:55 AM To: Derby Discussion Subject: Limit on number of rows a table can hold? Hi, Is there a limit on the number of rows a table can hold? I am planning on using derby as the RDBMS for a system

RE: Limit on number of rows a table can hold?

2007-02-20 Thread Michael Segel
, but will it perform as well as other databases? -Original Message- From: A. Rick Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 7:45 AM To: Derby Discussion Subject: Re: Limit on number of rows a table can hold? But we'd all like to know at what point it rolls over and dies

Re: Limit on number of rows a table can hold?

2007-02-20 Thread Nurullah Akkaya
saved a lot of resources and application is much faster. but i am sure there is some body else's application that will be much faster under DB2 or oracle. Nurullah Akkaya On Feb 20, 2007, at 2:54 PM, Tim Troup wrote: Hi, Is there a limit on the number of rows a table can hold? I am

limit in select

2006-10-24 Thread Jim Newsham
Hi, Is there a jira issue for adding a limit statement (to limit the number of records returned) to a select statement? I did a jira search but could find no such issue. Id like to vote for it. I also searched the mailing list for discussions regarding this feature, and responses

Re: limit in select

2006-10-24 Thread Bryan Pendleton
Is there a jira issue for adding a limit statement (to limit the number of records returned) to a select statement? I did a jira search but could find no such issue. I’d like to vote for it. Hi Jim, I think DERBY-581 is the issue that tracks this request: http://issues.apache.org/jira

Re: Top 1 - Limit 1

2006-09-16 Thread Tim Dudgeon
Marl Atkins wrote: This would only work if the ID field is an Identity. As it happens, it IS so this should work for me too. THREE answers to my problem. You guys are good THANKS!! Yes, but is there an equivalent to the TOP or LIMIT keywords that other databases use? Tim

Re: Top 1 - Limit 1

2006-09-16 Thread Bernt M. Johnsen
Tim Dudgeon wrote: Marl Atkins wrote: This would only work if the ID field is an Identity. As it happens, it IS so this should work for me too. THREE answers to my problem. You guys are good THANKS!! Yes, but is there an equivalent to the TOP or LIMIT keywords that other

Re: Top 1 - Limit 1

2006-09-16 Thread Tim Dudgeon
Bernt M. Johnsen wrote: Tim Dudgeon wrote: Yes, but is there an equivalent to the TOP or LIMIT keywords that other databases use? Not in SQL (neither in Derby nor the SQL standard). The closest equivalent is Statement.setMaxRows(i). So that would not be applied at the query level

Re: Top 1 - Limit 1

2006-09-16 Thread Harri Pesonen
It would be great if Derby had TOP (as in SQL Server) and LIMIT (as in MySql), because DataSet does not allow setMaxRows. TOP and LIMIT should support variables: @Select(SELECT TOP ?1 * FROM Users WHERE Pin IS NULL) DataSetUsers getWithoutPin(int top); -- Harri Tim Dudgeon wrote: Bernt M

Re: Top 1 - Limit 1

2006-09-16 Thread Bernt M. Johnsen
Tim Dudgeon wrote: Bernt M. Johnsen wrote: Tim Dudgeon wrote: Yes, but is there an equivalent to the TOP or LIMIT keywords that other databases use? Not in SQL (neither in Derby nor the SQL standard). The closest equivalent is Statement.setMaxRows(i). So that would

Top 1 - Limit 1

2006-09-14 Thread Marl Atkins
Hi: I'm searching the docs and can't find it. Is there a way to limit the number of records in the result like: Sql Server: Select Top 1 * From MyRecs ORDER BY ID DESC MySql: Select * From MyRecs ORDER BY ID DESC LIMIT 1 Basically, I need the ID of the last record inserted. How can I get

Re: Top 1 - Limit 1

2006-09-14 Thread Dan Scott
to limit the number of records in the result like: Sql Server: Select Top 1 * From MyRecs ORDER BY ID DESC MySql: Select * From MyRecs ORDER BY ID DESC LIMIT 1 Basically, I need the ID of the last record inserted. How can I get that? e.g. by calling stmt.setMaxRows(1); but it will not give

RE: Top 1 - Limit 1

2006-09-14 Thread Marl Atkins
Yes, highest ID = it's an Identity field. It looks to me like either would work. Any idea which has a better performance? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 14, 2006 8:04 PM To: Derby Discussion Subject: Re: Top 1 - Limit 1

RE: Top 1 - Limit 1

2006-09-14 Thread Marl Atkins
Subject: Re: Top 1 - Limit 1 I think the IDENTITY_VAL_LOCAL() function is what Marl is actually looking for. http://db.apache.org/derby/docs/10.1/ref/rrefidentityvallocal.html Dan On 14/09/06, Bernt M. Johnsen [EMAIL PROTECTED] wrote: Marl Atkins wrote: Hi: I'm searching the docs

Re: Top 1 - Limit 1

2006-09-14 Thread Francois Orsini
it. You guys are good THANKS!!-Original Message-From: Dan Scott [mailto: [EMAIL PROTECTED]]Sent: Thursday, September 14, 2006 7:28 PMTo: Derby DiscussionSubject: Re: Top 1 - Limit 1I think the IDENTITY_VAL_LOCAL() function is what Marl is actually looking for. http://db.apache.org/derby/docs

CLOB size limit? (error 22001)

2005-12-08 Thread J . English
Can anyone tell me what this means? ERROR 22001: A truncation error was encountered trying to shrink CLOB '# #Tue Dec 06 10:35:22 GMT 2005 f1=bTest 1 succeeeded (2 m' to length 1048576. Is there some sort of upper limit on the size of a CLOB

RE: select: limit # of rows returned

2005-08-11 Thread Daniel Tripp
Danesh's fetch first 5 didn't work -- thanks anyway though. But Amit's java.sql.Statement.setMaxRows() works perfectly. Nice!

select: limit # of rows returned

2005-08-10 Thread Daniel Tripp
Title: Message Hello. I'm trying to limit the number of rows returned by a select statement. I know that other databases have way to do this, such as: select * top 10 from thetable set rowcount 5 select * from thetable select * from thetable limit 10 But I gather

Re: select: limit # of rows returned

2005-08-10 Thread Amit Modi
Daniel Tripp wrote: Hello. I'm trying to limit the number of rows returned by a select statement. I know that other databases have way to do this, such as: select * top 10 from thetable set rowcount 5 select * from thetable select * from thetable limit 10 But I gather

Does Derby optimize queries w/ ORDER BY and LIMIT? (w/ indexes?)

2005-07-05 Thread Stan
Does Derby optimize queries that use ORDER BY and setMaxRows() when indexes are present? My situation: I have an existing Derby table listing 2 million cities, with the name, latitude, longitude, and population of each city. I want to efficiently find the 50 most populous cities between (for

Re: Does Derby optimize queries w/ ORDER BY and LIMIT? (w/ indexes?)

2005-07-05 Thread Mike Matrigali
the merge buckets - that is about the opposite of what you want for a limited result. You rather have buckets for ranges and then once you had 50 more than a given value you could throw away all those bigger/less than the value. The limit function as you say I believe mostly just cuts off

Re: Does Derby optimize queries w/ ORDER BY and LIMIT? (w/ indexes?)

2005-07-05 Thread Mike Matrigali
merge buckets and finally merge all the merge buckets - that is about the opposite of what you want for a limited result. You rather have buckets for ranges and then once you had 50 more than a given value you could throw away all those bigger/less than the value. The limit function as you say I

Re: Does Derby optimize queries w/ ORDER BY and LIMIT? (w/ indexes?)

2005-07-05 Thread Satheesh Bandaram
As far as I know, Derby doesn't optimize based on maxRows. This is only used to limit rows returned to clients, as you mentioned below. Satheesh Mike Matrigali wrote: I'll start by saying that I am not an optimizer expert. I don't think the optimizer does anything special with limits - but I

Limit to number of active databases?

2005-06-03 Thread Neal Dewing
Hi, I have the following odd requirement... I require opening a single connection to multiple databases concurrently. The Derby embedded driver seems to fall out while attempting to open 75 - 85 different databases. Is there any record of this limitation? What are my options? Any help will be

Re: Limit to number of active databases?

2005-06-03 Thread Shreyas Kaushik
I don't think there is any restriction as such. Try running your VM with extra heap size and it should be fine. I was able to create 100 databases and connect to each of them. The default heap memory allocated by the VM may be insufficient for such a high number of active databases. Hope this

Re: Limit to number of active databases?

2005-06-03 Thread The Wogster
Neal Dewing wrote: Hi, I have the following odd requirement... I require opening a single connection to multiple databases concurrently. The Derby embedded driver seems to fall out while attempting to open 75 - 85 different databases. Is there any record of this limitation? What are my

LIMIT with Select Statement

2005-03-16 Thread Devang
Hi Is it possible to use LIMIT keyword with select statement? Or is there any other alternative for the same? Thanx Devang

Re: LIMIT with Select Statement

2005-03-16 Thread Mamta Satoor
On Wed, 16 Mar 2005 19:52:56 +0530, Devang [EMAIL PROTECTED] wrote: Hi Is it possible to use LIMIT keyword with select statement? Or is there any other alternative for the same? Thanx Devang Hi Devang, If you search for Support for SQL Limit

Re: LIMIT with Select Statement

2005-03-16 Thread Satheesh Bandaram
Derby allows limiting the number of rows returned by a query using JDBC. You can use java.sql.Statement.setMaxRows() method. Satheesh Devang wrote: Hi Is it possible to use LIMIT keyword with select statement? Or is there any other alternative for the same

Re: LIMIT with Select Statement

2005-03-16 Thread Dan Scott
On Wed, 16 Mar 2005 06:48:16 -0800, Mamta Satoor [EMAIL PROTECTED] wrote: On Wed, 16 Mar 2005 19:52:56 +0530, Devang [EMAIL PROTECTED] wrote: Hi Is it possible to use LIMIT keyword with select statement? Or is there any other alternative for the same? Thanx

Re: LIMIT with Select Statement

2005-03-16 Thread Dan Scott
, 2005 9:19 AM To: Derby Discussion Cc: Derby Development Subject: Re: LIMIT with Select Statement On Wed, 16 Mar 2005 06:48:16 -0800, Mamta Satoor [EMAIL PROTECTED] wrote: On Wed, 16 Mar 2005 19:52:56 +0530, Devang [EMAIL PROTECTED] wrote: Hi Is it possible

RE: LIMIT with Select Statement

2005-03-16 Thread Bernd Ruehlicke
16, 2005 9:31 AM To: Derby Discussion Subject: Re: LIMIT with Select Statement Bernd: That's not a good assumption. The Derby Project Charter (http://incubator.apache.org/derby/) states: The Derby project develops open source database technology that is: * Pure Java * Easy

Re: LIMIT with Select Statement

2005-03-16 Thread Jeremy Boynes
On a personal note... Bernd Ruehlicke wrote: I assume Derby has to stay in a mode so it is always possible to migrate to DB2 ? - Not that I know of this - I am just throwing the ball in the air to see if anyone is responding to this. Compliance with the SQL standard and building the best damn

Re: LIMIT with Select Statement

2005-03-16 Thread Jean T. Anderson
Mamta Satoor wrote: On Wed, 16 Mar 2005 19:52:56 +0530, Devang [EMAIL PROTECTED] wrote: ... Is it possible to use LIMIT keyword with select statement? Or is there any other alternative for the same? ... If you search for Support for SQL Limit? in the derby developer list archive, you will find

RE: Database Size Limit

2005-01-13 Thread Hong Ji
Thanks for the replies. Then Derby is good enough regarding the database size. Hong -Original Message- From: Mike Matrigali [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 11:37 AM To: Derby Discussion Subject: Re: Database Size Limit Note that derby uses 64 bit file

Re: Database Size Limit

2005-01-11 Thread Mike Matrigali
in a VLDB (ie. parallel thread execution of a single query, parallel sort, offline indexing, incremental backup, ...). Jack Klebanoff wrote: Hong Ji wrote: Hi, Does Derby have any limit on the database size? Thanks. Hong A Derby database is stored in multiple files under one directory, so

limit functionality

2005-01-04 Thread Liam Egan
LIMIT functionality. Or for those of you not familiar with mySQL syntax specifically, the ability to fetch x records from a point y number of records into the recordset. In mySQL I would be able to tack 'LIMIT y,x' onto the end of a query to accomplish this, but I can't find any kind

Re: limit functionality

2005-01-04 Thread Mamta Satoor
have the need to use LIMIT functionality. Or for those of you not familiar with mySQL syntax specifically, the ability to fetch x records from a point y number of records into the recordset. In mySQL I would be able to tack 'LIMIT y,x' onto the end of a query to accomplish this, but I can't