home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / 7733 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.8 KB

  1. Path: sparky!uunet!bcstec!rick
  2. From: rick@bcstec.ca.boeing.com (Richard Hall)
  3. Newsgroups: comp.databases
  4. Subject: Re: Paradox 4.0 speed (?)
  5. Summary: Sorts in Paradox 4.0 - Why are you performing sorts on a table in the
  6.      first place???
  7. Message-ID: <4161@bcstec.ca.boeing.com>
  8. Date: 9 Nov 92 21:41:58 GMT
  9. References: <tim.1.720996716@tim.src.utah.edu> <troj.721089339@cwis> <tim.5.721094115@tim.src.utah.edu>
  10. Organization: Boeing Computer Services, Seattle
  11. Lines: 18
  12.  
  13. In article <tim.5.721094115@tim.src.utah.edu>, tim@tim.src.utah.edu (Tim Ma) writes:
  14. > I have a simple script written in 3.5 that randomizes the order
  15. > >>of records in a file.  All it does it import that file as a single TEXT 
  16. > >>field, tacks on a random number in anothe field, sorts on the random number, 
  17. > >>and then outputs the randomized file.  To my surprise, it runs almost 50% 
  18. > >>slower in 4.0 thanit did in 3.5 (14 minutes vs. 10 minutes).  I'm running a
  19. > >>386SX with 4M of RAM.  Any ideas or comments?
  20. Why are you sorting a data table anyway? If the reason is to print it in 
  21. reports in a sorted manner, do that IN THE REPORT using GROUPINGS! If you need
  22. to sort data in a table, you obviously are not using KEYS. Paradox nearly 
  23. requires use of keys for optimum performance. Keys are the trigger to speed 
  24. and performance in paradox. I find sorting seldom needed in a data table and I  have been building Paradox applications for 5 years. Sorting defeats the
  25. purpose of keys and indexes and should not be used if a well designed database.
  26. Use of INDEXES  create secondary keys which can increase searches and queries
  27. performances substantially. Do not use sorts, use Paradox functions for earching tables. Sorts can be used for processing ANSWER tables prior to creating graphs, but that is the ONLY reason I would sort a table...
  28.  
  29.