Performence

Sep 14, 2006

suresh writes "Hi
This is suresh,
I want to know some information about Dynamic sql
what its performense wise?
Difference bitween the proc and dynamic sql?
Advantages of dynamic sql?"

View 1 Replies


ADVERTISEMENT

Regarding Query Performence

Dec 5, 2007



Here each record have start and ending time ,i want to find the timeleft between currenttime and endtime for each and every records.

Eg: This record end within "10day 12hrs 10mins"

View 4 Replies View Related

I Have A Question With Related To Performence

Jun 25, 2006

i have a single souce table , Table a With contiains records for twodifferent entries for the same vendor by different accountinginstructions,BidId = 10,Person Name=ABC,PersonBidAmt=$100BidId = 11,Person Name=ABC,PersonBidAmt=$110now the recors are to be shown asOriginal Rcds Vs IntutiveRecordsOrName,OrAmt,IntName,IntAmtABC,100,ABC,110for this reason i useSelect A.name,A.Amt,B.name,B.Amtfrom AleftOuterjoin B -- There are many reasons why i do a left outer joinbecause i may not have the record in the b side at allbut this is causing a very big performence issue as this view is veryhuge.31,000 records on each side is taking 2 minits to work.Could any one help me with this.

View 4 Replies View Related

Query Performence About NText

Sep 5, 2006

Is there any difference between a nText field value='' and value=NULL ?

View 4 Replies View Related

View Performence - How To Improve

Sep 13, 2007

Hello,

I have the following view SQL ( LATESTRECALL_v, for communication purposes ):

SELECT REC.RECKEY, REC.RECSTM, REC.RECUID, REC.RECREC, REC.RECLNN, REC.RECCCD, REC.RECSKU, REC.RECSKD, REC.RECPEC,
REC.RECPRL, REC.RECQTY, REC.RECTGQ, REC.RECTAG, REC.RECASN, REC.RECRLC, REC.RECPLC, REC.RECNTS, REC.RECRST,
REC.RECLOT, REC.RECARF, REC.RECVEN, REC.RECIBO, REC.RECSRN, REC.RECPAR, REC.RECINS, REC.RECSDTR, REC.RECDEA,
REC.RECUOI, REC.RECFPL, REC.RECTDA, REC.RECUMN, REC.RECRQT, REC.RECCID, REC.RECCTN, REC.RECFPC, REC.RECEPU,
REC.RECSCQ, REC.RECLOG, REC.RECSTS, REC.RECTDV, REC.RECSHDR, REC.RECRRN, REC.RECWDF, REC.RECWWF, REC.RECSLT,
REC.RECSQT, REC.RECSTG, REC.RECRTG, REC.RECPSN, REC.RECIFL, REC.RECEXPR, REC.RECMFDR, REC.RECMFGR, REC.RECCNO,
REC.RECSC1, REC.RECSC2, REC.RECSC3, REC.RECSC4, REC.RECSC5, REC.RECSC6, REC.RECSC7, REC.RECSC8, REC.RECSC9,
REC.RECSD1, REC.RECST1, REC.RECSD2, REC.RECST2, REC.RECSD3, REC.RECST3, REC.RECSQ1, REC.RECSQ2, REC.RECSQ3,
REC.RECSQ4, REC.RECSQ5, REC.RECSQ6, REC.RECSDU1, REC.RECSDU2, REC.RECRRC, REC.RECICS, REC.RECJOBS
FROM dbo.REC, dbo.LATESTRECKEY_V
WHERE REC.RECKEY = LATESTRECKEY_V.LATEST_RECKEY
Note that it refers to view LATESTRECKEY_V, which is defined below ( the SQL ):

SELECT REC.RECSKU, REC.RECPRL, max(REC.RECKEY) AS latest_reckey
FROM dbo.REC, dbo.LATESTREC_V
WHERE
REC.RECSKU = LATESTREC_V.RECSKU AND
REC.RECPRL = LATESTREC_V.RECPRL AND
sysdb.ssma_oracle.to_char_date(REC.RECSDTR, 'YYYYMMDD') + REC.RECSTM = LATESTREC_V.LATEST_DATE_TIME
GROUP BY REC.RECSKU, REC.RECPRL
Note that it refers to view LATESTREC_V, which is defined below ( the SQL ):

SELECT REC.RECSKU, REC.RECPRL, max(sysdb.ssma_oracle.to_char_date(REC.RECSDTR, 'YYYYMMDD') + REC.RECSTM) AS latest_date
time
FROM dbo.REC
GROUP BY REC.RECSKU, REC.RECPRL
Now, there already is a key on the REC table, columns RECSKU and RECPRL. Adding that index sped things up quite a bit. But this setup is still very enefficient. I cannot apply the indexed view concept to LATESTRECKEY_V or LATESTREC_V because they use "max". I suppose I could apply it to the first view, but since that view depends on the other 2 views, I am not convinced it will improve my performance. Any ideas on improving such a situation? Thanks for your time.


Tony

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved