question about derby database location

2007-03-16 Thread Kevin Wu
I have a java web application on a virtual host with Tomcat. I do not want to set my embedded derby database's home by absolutely path. I hope it can location in the web application's root directory. But when I set the URL like this jdbc:derby:DBTest;create=true. The DBTest database always

Re: Large multi-record insert performance

2007-03-16 Thread Kristian Waagan
Daniel Noll wrote: using prepared statement + batch will be your fastest approach even tough you pass 1000 records per query derby has to still parse that query whereas with prepared statements they are parsed once. and if you are using batch all your data will be passed at once so derby will

Re: Question about the BLOB Error

2007-03-16 Thread Kristian Waagan
Got a reply from Kevin, which said that Hibernate had set the BLOB column maximum size to 255 bytes. After this was fixed, inserting the 64k BLOB worked fine. -- Kristian Kristian Waagan wrote: Kevin Wu wrote: I use embedded derby as my database, but when I save a Blob to DB, it throw the

Re: how to query certain number of rows in derby

2007-03-16 Thread John H. Embretsen
ccl007 wrote: you know in mysql ,we can use limit to query certain number of rows from a table in database like select * from table1 limit 2,7; what kind of sql language should i use in derby to perform the same kind of function in derby I believe you have hit FAQ 5.2:

Re: question about derby database location

2007-03-16 Thread Imran Hussain
Kevin, Before starting the database, set the value for derby.system.home. For example: System.setProperty(derby.system.home, /home/derby/); // Use absolute path here. When you run tomcat, the value for user.dir is set to Tomcat home. This why if you do not specify absolute path the

RE: Heap container closed exception (2 statements on same connection)

2007-03-16 Thread Jeffrey Clary
I expected to be able to retrieve all 500 rows from the result set with no exception. I am not experienced with the holdability attribute, but as I understand it, it allows a result set in a connection to stay open across commits, either explicit or implicit. I have run the same test after

Derby Connection Profile Eclipse DTP Error

2007-03-16 Thread rjain
Hi I am using Derby 10.2.2 and Eclipse 3.3. I try to create a Database Profile (DTP) using the Apache Derby JDBC Connection. I use the Derby Client JDBC Driver, and I have specified the jars files (derby.jar, derbyclient.jar, derbynet.jar, derbytools.jar) The URL is

Re: Heap container closed exception (2 statements on same connection)

2007-03-16 Thread Bryan Pendleton
implicit commit. However, with holdability set to HOLD_CURSORS_OVER_COMMIT, I no longer get an exception on calling next() the first time, but rather get good data for 415 calls. On the 416th call, I get an exception not that the result set is closed, but rather than an underlying storage

Re: Large multi-record insert performance

2007-03-16 Thread Dyre . Tjeldvoll
Sedillo, Derek (Mission Systems) [EMAIL PROTECTED] writes: Hello Daniel, Thank you for sharing your finding. It is interesting to see that using executeBatch was actually slower than executeUpdate. Of these three approaches I find it hard to picture multiple inserts in a single

Re: how to query certain number of rows in derby

2007-03-16 Thread Nurullah Akkaya
be careful while using it it does not effect performence where as in mysql and others it does derby will retrive all rows but return only what you set through setMaxRows had a similar problem i was using limit to get only a single row in mysql query returned instantly with a single row

Re: Large multi-record insert performance

2007-03-16 Thread Dyre . Tjeldvoll
Sedillo, Derek (Mission Systems) [EMAIL PROTECTED] writes: Dyre, The goal is to find the most efficient/optimized way to insert large amounts of data into Derby. For example in working as an Oracle DBA I have discovered that I can bulk load data from ProC using an array of C Structures in

Re: Derby storage using Java Web Start PersistenceService API - is it doable?

2007-03-16 Thread David Van Couvering
Hi, Luigi. I looked at this once, and it really didn't seem that the API provided by the JWS persistence service was sufficient for the needs of Derby. But I didn't look too closely at it. For me demo needs, a popup was fine. What you'd have to do is provide a new implementation of the

Re: Large multi-record insert performance

2007-03-16 Thread Mike Matrigali
Sedillo, Derek (Mission Systems) wrote: Dyre, The goal is to find the most efficient/optimized way to insert large amounts of data into Derby. For example in working as an Oracle DBA I have discovered that I can bulk load data from ProC using an array of C Structures in one insert statement

RE: Large multi-record insert performance

2007-03-16 Thread Sedillo, Derek \(Mission Systems\)
Dyre, I apologize for the confussion. I wasn't quite sure what Daniel meant with regards to: All in one transaction using executeUpdate(): 100 tags added in 274ms 100 tags removed in 70ms 1000 tags added in 299ms 1000 tags removed in 250ms 1 tags added in 1605ms 1 tags removed in

Re: Derby storage using Java Web Start PersistenceService API - is it doable?

2007-03-16 Thread Andrew McIntyre
On 3/16/07, David Van Couvering [EMAIL PROTECTED] wrote: Hi, Luigi. I looked at this once, and it really didn't seem that the API provided by the JWS persistence service was sufficient for the needs of Derby. But I didn't look too closely at it. For me demo needs, a popup was fine. What

Re: Derby Connection Profile Eclipse DTP Error

2007-03-16 Thread Stanley Bradbury
rjain wrote: Hi I am using Derby 10.2.2 and Eclipse 3.3. I try to create a Database Profile (DTP) using the Apache Derby JDBC Connection. I use the Derby Client JDBC Driver, and I have specified the jars files (derby.jar, derbyclient.jar, derbynet.jar, derbytools.jar) The URL is