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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make filter FASTER?? see message

Status
Not open for further replies.

petrovlis

Programmer
Jan 15, 2002
114
NL
if{Mail_OfferOut_All.Conti} = "N" or {Mail_OfferOut_All.Conti}= "Z" then

if {Mail_OfferOut_All.Origin} = "EEC" then
Int ({Mail_OfferOut_All.FOBEUR}
+ ({Mail_OfferOut_All.RdamAntFreight}/
({Mail_OfferOut_All.Contweight}/1000))
+ {Mail_OfferOut_All.ExtraProfit})/
((100-{Mail_OfferOut_All.CommPct})/100)
else
Int ({Mail_OfferOut_All.CHIEUR} + ({Mail_OfferOut_All.ChinaFreight}/
({Mail_OfferOut_All.Contweight}/1000))
+ {Mail_OfferOut_All.ExtraProfit})/
((100-{Mail_OfferOut_All.CommPct})/100)


else

if {Mail_OfferOut_All.Origin} = "EEC" then
Int ({Mail_OfferOut_All.FOBUSD}
+(({Mail_OfferOut_All.RdamAntFreight}*{Mail_OfferOut_All.USD})/
({Mail_OfferOut_All.Contweight}/1000))
+ {Mail_OfferOut_All.ExtraProfit})/
((100-{Mail_OfferOut_All.CommPct})/100)
else
Int ({Mail_OfferOut_All.CHIUSD}
+(({Mail_OfferOut_All.ChinaFreight}*{Mail_OfferOut_All.USD})/
({Mail_OfferOut_All.Contweight}/1000))
+ {Mail_OfferOut_All.ExtraProfit})/
((100-{Mail_OfferOut_All.CommPct})/100)

THANKS FOR ANY HELP ! - William
 
create indexes for all fields used in your filter expr.
follow the rushmore optimization guidelines
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top