is It ok to have Japplat on Apache tomcat server and the Apache derby on another server?

2008-12-15 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=65388 Posted on behalf of a User Hi all, I am working on developing a web application where: first, a script will retrieve data from the Japplet then validate it with information on Database (Apache derby database) then, it will sent an Ok

Performance issue of derby using JDBC

2008-12-15 Thread Harshad
Hi all, I am new to Derby and database programming in general. This is my first real-world setup, and I am getting horrifying performance from my application. (The code is available at http://code.google.com/p/jamun/ ) It is one particular query that is causing me major worry. It is a simple

Re: Performance issue of derby using JDBC

2008-12-15 Thread Harshad
Harshad wrote: These seem to have paid off; the actual query time (statement.executeQuery) is pretty fast : about 1 or 2 milliseconds. But reading from the resultSet using APIs such as getString, getLong, takes about 250 ms or more!! Forgot to mention; the query usually (99%) results in

Re: Performance issue of derby using JDBC

2008-12-15 Thread Kristian Waagan
Harshad wrote: Harshad wrote: These seem to have paid off; the actual query time (statement.executeQuery) is pretty fast : about 1 or 2 milliseconds. But reading from the resultSet using APIs such as getString, getLong, takes about 250 ms or more!! Forgot to mention; the query usually (99%)

Re: Performance issue of derby using JDBC

2008-12-15 Thread Emmanuel Cecchet
Harshad wrote: Harshad wrote: These seem to have paid off; the actual query time (statement.executeQuery) is pretty fast : about 1 or 2 milliseconds. But reading from the resultSet using APIs such as getString, getLong, takes about 250 ms or more!! Forgot to mention; the query

Re: Performance issue of derby using JDBC

2008-12-15 Thread Harshad
Hi Emmanuel, Emmanuel Cecchet wrote: Are you using getString(columnName) or getString(1) to access the result? Some databases only fetch ResultSetMetaData (including column names) when it needs them. Using the column index can dramatically improve performance. I am not sure if this is the

Re: Performance issue of derby using JDBC

2008-12-15 Thread Harshad
Hi Kristian, The entire code is available at http://code.google.com/p/jamun/. It is written in scala, which might not be familiar to all. I am posting below some snippets that might help. Kristian Waagan wrote: I think you'll have a better chance of getting any answers if you provide more

Re: Performance issue of derby using JDBC

2008-12-15 Thread Bryan Pendleton
Harshad wrote: select name,version,release,time from PKG where PKG.id in (select id from PROVIDES where name = ?), What happens if you run this statement instead: select pkg.name,pkg.version,pkg.release,pkg.time from pkg, provides where pkg.id = provides.id and provides.name = ?

Re: Performance issue of derby using JDBC

2008-12-15 Thread Harshad
Bryan Pendleton wrote: Harshad wrote: select name,version,release,time from PKG where PKG.id in (select id from PROVIDES where name = ?), What happens if you run this statement instead: select pkg.name,pkg.version,pkg.release,pkg.time from pkg, provides where pkg.id =

Re: Performance issue of derby using JDBC

2008-12-15 Thread Rick Hillegas
Harshad wrote: Bryan Pendleton wrote: Harshad wrote: select name,version,release,time from PKG where PKG.id in (select id from PROVIDES where name = ?), What happens if you run this statement instead: select pkg.name,pkg.version,pkg.release,pkg.time from pkg, provides

Re: Tomcat derby JSP java.sql.SQLException: No suitable driver

2008-12-15 Thread Stephan van Loendersloot (LIST)
teamderby wrote: Hi Stephan, Excellent, it worked! i'm extremely grateful, you've ended a lot of frustration on my part and i cannot thankyou enough for the help you've supplied. the tutorial is excellently produced and i am sure will be a welcome resource for other people attempting to set