SBPro4 questions…
7 messages in this thread
Pat,
Here's a question for you … I have a "client" database containing more
than 1200 records. I set up a "SELECT WHERE LastName LIKE "[J*]"" for
example and the next command issued is a "REQUEST" type 20 to present the
user with a list of customers matching the wildcard they entered (in this
case "J*"). It seems to me that SBP could access the index to produce this
list for the requester rather than doing what seems to be a sequential scan
of the entire database (which is over 300K and growing). It takes better
than a minute to select the records that match. Is there another way to do
this which takes a bit less time?
Also, I saw where someone had asked about scrolling transaction lines on
a form. I seem to have missed the response(s) to the question though. Is
there any way this information could be re-presented here? I could
certainly make use of it.
Thanks much,
Jim Joslin
Jim,
First off, the request type you should be using in that case is type 24 (I
think this is available, I don't have the docs for the Amiga version yet).
The request type 24 presents a picklist to the user using the current
filter. Also, the reason it takes so long is that your query is not
optimized (I would guess). If you are using something like the following,
then it is *not* optimized:
SELECT WHERE LastName LIKE UserAnswer$
To optimize it, do the following:
z$ = "SELECT WHERE LastName LIKE " + UserAnswer$
EXECUTE z$
This results in the value of UserAnswer$ being evaluated *before* it is
passed to the filter system, which will make it dramatically faster than
passing it a variable. Also, obviously make sure that you have an index on
the LastName field.
As for scrolling transaction lines, it is a complex procedure best
described by the OCTS Advanced Workbook for Superbase 4. Although the book
is primarily intended for the IBM/Windows audience, much of what it has to
offer is applicable to the Amiga version.
Ciao, Neil
Neil,
Thanks for the information. I'll give it a try and see what happens. In
regards to the OCTS Advanced Workbook for Superbase 4… where am I
mostlikely to find it. Or, who is the publisher? I suppose I can get it
from them..
Thanks again, Jim
Jim,
Here is the address of the people who wrote it, someone is handling it in
the US, but I haven't a clue who. I ordered it direct.
Oxford Computer Training Services Wolsey Hall 66 Banbury Road Oxford OX2
6PR United Kingdom
Good Luck!
Thanks for the info Neil.
I changed my programs to build a command string and execute it and the
access time decreased dramatically. This kind of help almost makes
Compu$erve worthwhile :-> Thanks again.
Jim
Jim,
Glad to be of assistance. For more info on Superbase 4, you can also scan
the messages in the SPCFORUM section 16. That is the forum for the Windows
version and I am a sysop there.
Ciao, Neil
Jim
This book (Cat# 9672) is also available from here in the UK from:
Computer Manuals 50 James Road Tyseley Birmingham B11 2BA UK
Tel: 021-7066000 Fax: 021-7063301
Price 39.50 Pounds Sterling – They take VISA, AMEX, etc…
They also carry a LARGE range of other computer books.
Regards
Peter
– via Whap!