Re: slow query? (from a practical newbie)

2014-01-06 Thread Bryan Pendleton
select a.* from (select * from ducc.job order by stateIndex asc, id desc) a where id < 117000 Why is this query written like this, as opposed to, say: select * from ducc.job order by stateIndex asc, id desc where id < 117000 Do you get a different query plan / run time if you use a

Re: varargs functions: primitive or Object type?

2014-01-06 Thread Tim Dudgeon
On 06/01/2014 15:34, Rick Hillegas wrote: Maybe your problem is that your methods are not public. Damn it your right. That one method was not public! Sorry :-( Tim

Re: slow query? (from a practical newbie)

2014-01-06 Thread degenaro
Bryan Pendleton-3 wrote >> Ostensibly the where clause really slow does the query. How come and how >> do I remedy? > > Here's a good place to start: > > http://wiki.apache.org/db-derby/PerformanceDiagnosisTips > > thanks, > > bryan >From ij show indexes: DUCC|JOB

Re: varargs functions: primitive or Object type?

2014-01-06 Thread Rick Hillegas
On 1/6/14 6:09 AM, Rick Hillegas wrote: On 1/6/14 4:47 AM, Tim Dudgeon wrote: I'm trying to write a function that performs aggregation and I'm not clear on how to handle the varargs part. Lets assume I was wanting to write a function that does averaging, and handles null values correctly. I'm

Re: varargs functions: primitive or Object type?

2014-01-06 Thread Rick Hillegas
On 1/6/14 4:47 AM, Tim Dudgeon wrote: I'm trying to write a function that performs aggregation and I'm not clear on how to handle the varargs part. Lets assume I was wanting to write a function that does averaging, and handles null values correctly. I'm defining my function like this: CREATE F

varargs functions: primitive or Object type?

2014-01-06 Thread Tim Dudgeon
I'm trying to write a function that performs aggregation and I'm not clear on how to handle the varargs part. Lets assume I was wanting to write a function that does averaging, and handles null values correctly. I'm defining my function like this: CREATE FUNCTION MYAVG ( VALS DOUBLE ... ) RETUR