RE: [firebird-support] Slow query because an index is not picked up during sort

2012-06-05 Thread Svein Erling Tysvær
Svein, the selectivity of source_id is 0.000446 and commit_number is 0.01. So, it is not clear why FB is not using index on commit_number to filter AND sort on. I'd agree, Alec, if your where clause had involved PHYSICAL_COPY.COMMIT_NUMBER = 1000, but = and = are two very different

Re: [firebird-support] firebird.conf

2012-06-05 Thread Michael Ludwig
Tom Munro Glass schrieb am 05.06.2012 um 16:42 (+1200): The CentOS package firebird-2.1.4.18393.0-1.el5 installs firebird.conf in /etc/firebird/firebird.conf and /var/lib/firebird/firebird.conf. Shouldn't one of these be a symlink to the other I'd say the one in /etc is meant to be used for

[firebird-support] OT: Histograms (was: Slow query because an index is not picked up during sort)

2012-06-05 Thread Svein Erling Tysvær
Firebird doesn't have histograms yet, and logically speaking (I do not know the internals of the optimizer, nor the selectivity of your indexes, so this is how I would think if I should do things manually): Just as an aside, histograms will be less of a gain for Firebird than for some

[firebird-support] FireBird versions, 32-bit, 64-bit, and choice of client

2012-06-05 Thread magnusanger
Dear FireBird support Excuse me for my ignorance, but I hope you can help me. I don't know if my simple issue is qualified for this support group, but anyway I hope to get some suggestions. I have run a FireBird server for many years. I am currently using the version installed via the package

Re: [firebird-support] FireBird versions, 32-bit, 64-bit, and choice of client

2012-06-05 Thread Michael Ludwig
magnusanger schrieb am 05.06.2012 um 06:22 (-): I have run a FireBird server for many years. I am currently using the version installed via the package Firebird-2.1.1.17910-0_Win32.exe. I now plan to swap to a Windows 2008 64-bit server, and of course need to install another version of

Re: [firebird-support] FireBird versions, 32-bit, 64-bit, and choice of client

2012-06-05 Thread Michael Ludwig
Michael Ludwig schrieb am 05.06.2012 um 09:52 (+0200): http://www.firebirdsql.org/rlsnotesh/rlsnotes25.html#rnfb25-compat http://www.firebirdsql.org/rlsnotesh/rlsnotes25.html#rnfb25-engine-stats64 That applies only if you intend to upgrade to 2.5, of course. Which is what I had read into your

Re: [firebird-support] why the result is the number commas?

2012-06-05 Thread Milan Babuskov
W O wrote: Never use double precision for money neither for count something, use it for measures. Actually, you can use it to _count_ as long as all individual items are integers. Double precision is built that way to keep integer arithmetics clean as long as all operands are integers and

Re: [firebird-support] Slow query because an index is not picked up during sort

2012-06-05 Thread Ann Harrison
I am assuming you meant to use LEFT not INNER JOIN, right? Right - and right that I got SAP and SAS confused (again). Typing, talking, and trying to get the dog to stop emptying the trash should not be done simultaneously. Ann [Non-text portions of this message have been removed]