Re: Quickest Search

Author: Michael Glassman

Posted: 2014-09-03 at 09:54:09

I solved a similar problem by realizing that items in stock and other such tables rarely get updated. So I added a field called "Searchable" that contains the concatenation of all of the possibly searchable fields. Yes, your file will be larger (though 10,000 record files aren't really very large to start with), and you'll take a one-time hit when you populate this field for all 10K records, but those drawbacks are negligible compared to the time you'll save by only having to search one field in the future. Just don't forget to alter your insert and update routines to include populating the new field.

Mike

Michael H. Glassman

IS Manager

Pioneer Drama Service, Inc.

www.PioneerDrama.com

--------------------------------------------------------------------------------

From: Sytze de Boer

Sent: Tuesday, September 02, 2014 9:33 PM

To: profoxtech@leafe.com

Subject: Quickest Search

I have a large stock file (say 10,000 records)

I only have a vague idea what I'm searching for

So, I may have a variable like

srch4="upper(name+code+stkmemo+unitmeas2+altsupply+descopt2+descopt3+descopt4+descopt5+bar2code+bar3code+alt2code)"

Is there a better/quicker way to CONSTRUCT the following

Select Code, desc, price, cost, qoh from winstoks Into Table temp order By

Code where At(lcSearch,&srch4)>0

--

Kind regards,

Sytze de Boer

Kiss Software

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/B4C296C1E9194A118F633B4ACCB18EEB@Studio17

** 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.

©2014 Michael Glassman