ADSM-L

select from actlog VS query actlog performance

2004-11-19 10:43:55
Subject: select from actlog VS query actlog performance
From: "Warren, Matthew (Retail)" <Matthew.Warren AT POWERGEN.CO DOT UK>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Fri, 19 Nov 2004 14:55:02 -0000
Hello TSM'ers



I'm doing some scripting that is using actlog queries fairly heavily, I
have noticed that

Select * from actlog where cast(date_time as date)=current_date and
process=1234

Is a lot slower than

Q actlog begint=-08:00 se=1234 (say, its 8am in the morning...)


Although you need to be carefull you are actually getting what you want
with the latter version.


Is TSM doing anything internally to generate a SQL statement that works
quicker than mine but gives the same/similar result? - I am assuming
that internally TSM takes q actlog (and other q commands) and generates
a SQL statement it then processes against the TSM DB, formatting the
result to generate the query output as non-tables.


Thanks,

Matt.





___________________________ Disclaimer Notice __________________________
This message and any attachments are confidential and should only be read by 
those to whom they are addressed. If you are not the intended recipient, please 
contact us, delete the message from your computer and destroy any copies. Any 
distribution or copying without our prior permission is prohibited.

Internet communications are not always secure and therefore Powergen Retail 
Limited does not accept legal responsibility for this message. The recipient is 
responsible for verifying its authenticity before acting on the contents. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those of Powergen Retail Limited. 

Registered addresses:

Powergen Retail Limited, Westwood Way, Westwood Business Park, Coventry, CV4 
8LG.
Registered in England and Wales No: 3407430

Telephone +44 (0) 2476 42 4000
Fax +44 (0) 2476 42 5432

<Prev in Thread] Current Thread [Next in Thread>