You may need to check other issues. I have a table with 227516 rows, also with one customer having a very large amount of data. (about 30%). Using the same statement below (substituting column names of course) my system responds back in less than 2 seconds. I have a single column index on customer_no.
This is on an older Novel network, server running only 400 MHZ and typical run of the mill network cards/switches.
Work station is 2 GHZ, 512 Ram running XP. So the hardware setup certainly would not be considered leading edge!
Some things to consider:
Insure that you have an index on custnb2.
Insure that the index length is designated for as long as your customer id's are, or else it will not be
effective.
A database rebuild should be done on occasion to assist in speed, or at least rebuild the indexes.
Insure that your temp/scratch files are set for your local hard drive.
Other areas would be to insure network cards/switches etc. are all operating at peak efficiency with no conflicts.
Hope this helps, as I am not sure what else to look at. It is a fairly straight forward query and I do not know
of anything faster than the simple Select statement.
-Bob
-------------- Original message --------------
Tried this from the R: prompt as:set var vTest1 = n/aThensel max(breakdat) into vTest1 from master where custnub2 = '6171'This works but this is one of our larger customers and it takes 60 seconds or more to pull this data.Any other ideas.Thanks-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 12:35 PM
To: [EMAIL PROTECTED]
Subject: [RBG7-L] - Re: View SpeedSel MAX(Breakdat) into varname from master where Custnub2 = .vcustshould work much faster, especially if you have an index onCustnub2. Have an exit EEP from the customer ID field look upthe value as such.-------------- Original message --------------
Is there any way to speed up the following view or a different method to be recommended for getting this information. I am trying to display the date of the last time we handled a customers business in a form as we enter the customer number in the form and begin a new record.(custnub2, Breakdate)Sel Custnub2, max Breakdatfrom mastergroup by custnub2Thanks for any help.Stephen BreenCDI Services, Inc.3610 Deahl CourtP.O. Box 3838 South Bend, IN 46628574-271-2027 Ext: 200Fax 574-247-4638Fax: 574-247-4631Email: [EMAIL PROTECTED]Web Site www.911roadrepair.comPager 800-668-8023Cell 574-339-2356
