FIND searches all attributes, values and sub-values, LOCATE searches Attributes OR Values OR SubValues. Beyond that though, LOCATE can be used in sorted order, which means that it can be considerably faster than FIND. Generally, try to organize the data so you can use LOCATE in sorted order. Better still, try to create algorithms that don't need to use LOCATE or FIND at all. If searching for things, use files and indexes and then the OPENINDEX. SELECT, SLECTINDEX, READNEXT, READPREV and so on. Then you are not limited by memory and search algorithms.
Jim > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Pratosh > Sent: Wednesday, March 24, 2010 11:13 AM > To: jBASE > Subject: FIND & LOCATE > > What is the difference between a FIND and a LOCATE statement? Does one > have any performance advantages over the other? > > Is it inadvisable to use a lot of LOCATEs inside an Infobasic routine? > > Environment Details: > Jbase release - Major 5.0, Minor 14, Patch 0287 > System - AIX > OS release - 5.3.0.0 > > -- > Please read the posting guidelines at: > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > IMPORTANT: Type T24: at the start of the subject line for questions > specific to Globus/T24 > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > > To unsubscribe from this group, send email to > jbase+unsubscribegooglegroups.com or reply to this email with the words > "REMOVE ME" as the subject. -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en To unsubscribe from this group, send email to jbase+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
