Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRXI - Union All Command TREAKING?

Status
Not open for further replies.

CRXIuser2005

Programmer
Sep 23, 2005
135
US
Does it matter as to the order of the data elements within a UNION ALL statement... in regard to enhancing the SPEED of the processing?

My union all command takes about 1 hours to process, granted I can live with this time frame, I'm just wondering if union all statements can be tweaked in someway to enhance the speed of the processings???


Thank you.

MV

"A man is only as happy, as he makes up his mind to be....
 
No, the order of data elements doesn't make a difference. The order of table names in the WHERE clause may make a difference in some DBMSs.

Find the SELECT within the UNION that takes a long time (run them individually) and improve that SELECT by considering indexing, etc.

Since you are not providing any background, it is difficult to offer a more detailed advice.

hth,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top