Subject | Re: [firebird-support] Slow SQl execution |
---|---|
Author | Martijn Tonies |
Post date | 2006-01-20T09:12:57Z |
Hello Kevin,
is not that complicated and on the surface of it should not take as long as
it does to execute. Give that assumption, and after ensuring that there are
sufficient indexes on the tables and fields involved in producing the
results . I am at something of a lost, as to where to turn next except for
upgrading to a later version of the software (which is not currently an
option available to me)
but, I suppose that time is critical for everyone that email you with their
dull Firebird/SQL problem.
please don't hesitate in posting a reply.
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> Some information that may help you to help me:the moment)
> Firebird version: 1.0 (upgrading this version is not a viable option at
> Page Size: 40961Gb of ram is taking up-to 2 hours to execute. As you can see the SQL itself
> SQL Dialect: 1
> Sweep Interval: 2000
> ODS version: 10.1
> Buffer | Pages 2048
>
>
> The problem: Executing the following SQL on a DELL power Edge server with
is not that complicated and on the surface of it should not take as long as
it does to execute. Give that assumption, and after ensuring that there are
sufficient indexes on the tables and fields involved in producing the
results . I am at something of a lost, as to where to turn next except for
upgrading to a later version of the software (which is not currently an
option available to me)
>of the problem would be greatly appreciated. Time is critical on this one
> Any help you can provide leading to a solution of a better understanding
but, I suppose that time is critical for everyone that email you with their
dull Firebird/SQL problem.
>tried to provide as much information as possible, if you required any more,
> Again, if you can help in any way it would be much appreciated. I have
please don't hesitate in posting a reply.
>as FBatch_No,
> select
> 'U'||D.Batch_No || '-' || D.Sub_Batch_No as Batch_No, d.Batch_No
> d.Sub_Batch_No as FSub_Batch_No, L.Display_Name,L.C_Centre,d.reasoncode,
> count(d.sub_batch_no) as carrier_countd.carrier_required = 'T'
> from
> cd$$__abb__master_8 M,Livery L, cd$$__abb__detail_8 D
> where
> (M.Card_Type = L.CardType) and (M.Batch_No = D.Batch_No) and
> and d.pullout_code = 0 and d.runtype in ('NEW/REISSUE','REPLACEMENT')and
> ((m.Batch_No = 7 and d.Sub_Batch_No = 1) or (m.Batch_No = 7 andd.Sub_Batch_No = 2)
> or (m.Batch_No = 8 and d.Sub_Batch_No = 1))No indices or constraints?
> group by
> D.Batch_No,D.Sub_Batch_No,L.Display_Name,d.reasoncode,l.C_Centre
> order by
> d.Batch_No, d.Sub_Batch_No , L.Display_Name
>
> CREATE TABLE CD$$__ABB__DETAIL_8 (
> BATCH_NO INTEGER NOT NULL,
> HPC_DESPATCH VARCHAR(3),
> RUNTYPE VARCHAR(11)
> )
>
> CREATE TABLE CD$$__ABB__MASTER_8 (
> BATCH_NO INTEGER NOT NULL,
> CUSTOMER_FILE_ID VARCHAR(100),
> HPC_FILE_INDEX INTEGER
> )
>
>
> CREATE TABLE LIVERY (
> CARDTYPE VARCHAR(25) NOT NULL,
> ISIMAGECARD VARCHAR(1),
> ISCHIPCARD VARCHAR(1),
> C_CENTRE VARCHAR(4)
> )
>
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com