Re: order by

2006-02-28 Thread Jeffrey Lichtman
I have made a test and dropped the composite index, and now the sorting is ok, regenerated the index and sorting is as described in my first problem report. tom It seems likely that the optimizer is using the index as a sort-avoidance strategy. That is, it is recognizing that the index is i

Re: What is performance differenc(es) between 1 index per column or one index for multiple column?

2006-01-09 Thread Jeffrey Lichtman
Thank you very much for reading my post. can you please explain me what is differences between 1 index for one column and one index for multiple columns ? In addition to what Ryan Bobko has already said about SELECT statements, I should point out that the existence of indexes on a table aff

Re: [VOTE] Apache Derby logo

2005-12-03 Thread Jeffrey Lichtman
This is a repeat of my vote, which I previously sent only to derby-dev: Logo candidates (place an X by your choice). 10. [X] (these all belong together...) http://issues.apache.org/jira/secure/attachment/12321022/derby_logo_only.jpg http://issues.apache.org/jira/secure/attachment/12321023/derb

RE: Logo Showcase

2005-11-30 Thread Jeffrey Lichtman
If you look at Roger's initial post and open the attachment you will see that he addressed the issues you mentioned: small size of logo, black and white logo. My point is that voters should take this into account, not that any submitter didn't. -Jeff Lichtman

Re: Logo Showcase

2005-11-30 Thread Jeffrey Lichtman
What's a "favicon"? David A favicon is a very small graphic file that is associated with a web site. A browser will usually display it in the upper left corner of a page or tab window. The resolution of a favicon is usually 16 by 16 pixels. The Google favicon is a blue capital G in a whit

Questions about Derby logo contest

2005-11-29 Thread Jeffrey Lichtman
There was an aborted logo contest earlier this year. What happened to the entries? Should they be submitted to the current contest? Also, what form will the voting take and how will a winner be determined? The usual way to run an election is to let every voter pick one candidate, and for the w

Re: Poor query optimizer choices is making Derby unusable for large tables

2005-11-11 Thread Jeffrey Lichtman
I've described the problem in detail below, and I'd appreciate any assistance. Specifically: i) Does anyone have any plans to fix this problem? I believe the real problem is that Derby doesn't have any strategy for doing multiple scans for OR/IN clauses. This is a useful feature, but I don

Re: Fwd: COUNT queries

2005-11-10 Thread Jeffrey Lichtman
> If you want to get the count including nulls, you can use COUNT(*), > which returns the number of rows in the set being aggregated (not the > number of values). A side question: Is this any faster than using COUNT( colName)? Or does COUNT() always entail something on the order of iterating

Re: Fwd: COUNT queries

2005-11-09 Thread Jeffrey Lichtman
1) A null column is excluded from a COUNT( colName ) aggregate. This is described in the section 10.9 under General Rules 4a. The database is supposed to raise a warning: "warning--null value eliminated in set function" If you want to get the count including nulls, you can use COUNT(*), whi

Re: Unique constraints on multiple fields with one nullable

2005-10-27 Thread Jeffrey Lichtman
I don't have my copy of the X3H2 SQL standard in front of me, but as I remember, the rule for unique constraints is that the uniqueness is applied only to non-null values. The standard is not available on-line (ANSI/ISO protects its copyright vigorously), but I did find a web site that backs me

RE: Error 38000 with a stack overflow on recordset.next()?

2005-10-20 Thread Jeffrey Lichtman
Here's a potential workaround for your problem. I suspect it will work, but I'm not sure: SELECT path from filesystemfiles where not exists (select * from existingfiles where existingfiles.path = filesystemfiles.path) The query does the same thing as your original one with "not in", b

RE: Error 38000 with a stack overflow on recordset.next()?

2005-10-20 Thread Jeffrey Lichtman
I believe I've figured out what's going on with this bug. It involves an optimization to materialize subquery results in some cases. This optimization works by creating a nested union of in-memory rows. What's happening in this case is that the unions are nested so deep that it gets a stack ove

Re: How to update cardinality statistics

2005-10-18 Thread Jeffrey Lichtman
Its a nice goal to be zero admin. however, I wonder if you're implying something that may be misleading. Good point - this needs clarification. The idea of zero admin with Derby is that an application doesn't need maintenance once it's deployed. It doesn't mean that no tuning is required - j

RE: Error 38000 with a stack overflow on recordset.next()?

2005-10-16 Thread Jeffrey Lichtman
I start out by running the following prepared statement a few thousand times: INSERT into existingfiles (path, id) VALUES (?, ?) Where path is a windows file path and id is an integer. I clear out the parameters with clearParameters() after each insert and set them to new values. Then I clos

Re: Server side cursor

2005-06-02 Thread Jeffrey Lichtman
. . . if I issue a very large, expensive select * from huge_table, if I have server side cursors, response is immediate, because there is nothing to process. My cursor is just a pointer to real data in the table. Even if I make a select * from huge_table order by some_column, if the column i

Re: Numer or rows in result?

2005-05-17 Thread Jeffrey Lichtman
I can't seem to find a way to get the number of rows in the current result via JDBC. Is there a way to get the number of rows in the result? There is no such method, mainly because it is impossible for a DBMS to know in advance how many rows will be in the result, except

Re: Java data types

2005-04-13 Thread Jeffrey Lichtman
When I first looked at Cloudscape years ago, I could have sworn there was support for Java objects and data types in a table definition, and you could refer to methods and fields in your SQL statements. Was I dreaming, or did it get removed? You weren't dreaming. IBM removed it in the version

Re: [VOTE] Reject tally of logo votes

2005-03-24 Thread Jeffrey Lichtman
Just a thought: what will we do if someone stuffs the ballot box on this vote the same way they did on the original vote? -Jeff Lichtman [EMAIL PROTECTED] Check out Swazoo Koolak's Web Jukebox at

Re: [VOTE] Reject tally of logo votes

2005-03-24 Thread Jeffrey Lichtman
+1 Reject the tally. New method of choosing a logo is determined by the community. -Jeff Lichtman [EMAIL PROTECTED] Check out Swazoo Koolak's Web Jukebox at http://swazoo

Re: [VOTE] Run-off for Derby Logo : who is voting

2005-03-23 Thread Jeffrey Lichtman
The sudden flood of votes for a specific logo yesterday looked kind of odd, especially the one from "noname nolastname", and I'm concerned we might be getting votes from people who joined the list just to cast a vote. But maybe it's just me -- has anyone else thought anything odd? -jean My fir

Re: [VOTE] Run-off for Derby Logo

2005-03-21 Thread Jeffrey Lichtman
[ ] 32 [X] 35 [ ] None of the above - keep trying -Jeff Lichtman [EMAIL PROTECTED] Check out Swazoo Koolak's Web Jukebox at http://swazoo.com/

Re: [VOTE] First round of voting for Derby Logo

2005-03-10 Thread Jeffrey Lichtman
[ X] 35 -Jeff Lichtman [EMAIL PROTECTED] Check out Swazoo Koolak's Web Jukebox at http://swazoo.com/

Re: [VOTE] on ground rules for determining Derby logo

2005-03-07 Thread Jeffrey Lichtman
The simple majority of votes will determine the winner. Do you mean a simple majority or a plurality? With the number of entries, it's not likely that there will be a simple majority (i.e. an entry whose votes account for more than 50% of those cast). There are several ways to deal with this:

Re: Problem with decimal precision

2005-03-02 Thread Jeffrey Lichtman
I have a field decimal(10,2) where I insert "32,78", but when I go to look at in the table the inserted value was "32,77", alguem which the problem? This is probably caused by the fact that you are inserting the value as a double. Doubles are not exact values - my guess is that 32.78 is being

Re: Autocommit and multi row INSERT

2004-12-16 Thread Jeffrey Lichtman
With automcommit == true, is an INSERT always treated as single transaction, even if the INSERT inserts multiple rows of data? I've always assumed that this would be the case, but I'm not sure I've seen that in it the jdbc autocommit contract. The practical question is whether I should turm

Re: Stored function problems

2004-09-23 Thread Jeffrey Lichtman
I'm trying to create a stored function in Derby and call it from either ij or Java. The class I created is: package oi; import java.sql.*; public class Derby . . . ij> create function earthlings.build_email (firstname varchar(20), lastname varchar(30)) returns varchar(8) language java external

Re: SQLite/Derby comparison

2004-08-27 Thread Jeffrey Lichtman
The SQLite folks have been trying to compare it with Derby, see http://www.sqlite.org/cvstrac/wiki?p=SqliteVersusDerby, although (by their own admission) they don't have a deep understanding of Derby. Is their evaluation correct? Thanks, David These parts are definitely incorrect: --