I would appreciate some comments regarding extraction speed
In my system is a history file where some clients now have > million records

Amongst other fields, here are the ones they need to search on and display

client C/10, indexed
stockcode C/15 indexed
desc C/100
story M
ordref C/10
project C/15
chknum C/15
ttlamount N/10,2
invnum N/10
serno C/10, indexed

This is the current routine wich is too slow
(trcask=the matter they searched for)

      Select * From winhst ;
         where At(trcask,stockcode+Upper(Desc)+Upper(story)+client)>0 ;
         or At(trcask,Upper(ordref)+Upper(Project)+Upper(chknum)) > 0 ;
         or At(trcask,Alltrim(Str(ttlamount,10,2)))>0 Or
At(trcask,Alltrim(Str(invnum)))>0 ;
         or At(trcask,Upper(serno)+Upper(courdets))>0 ;
         into cursor tmp

I'm sure there's a better way ?

-- 
Regards
Sytze de Boer
Kiss Systems

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to