home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2909 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.7 KB

  1. Path: sparky!uunet!gatech!emory!emory!not-for-mail
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Find Next row - Performance questions
  5. Date: 9 Jan 1993 19:03:03 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 30
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1inp3nINN546@emory.mathcs.emory.edu>
  11. Reply-To: dave.snyder@snide.com (Dave Snyder)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1765>
  14.  
  15. Quoting John LeBrun...
  16. }     The largest performance problem occurs when executing a
  17. } logical next/prev record request.  (To explain: a logical next record,
  18. } given a key of N columns and a value, find the next record in key
  19. } order) I currently have an implementation that is flexible enough to
  20. } return the correct request for any table or key.  I am looking for
  21. } comments and suggestions on ways to improve performance.
  22.   [ lots of statements and examples ommited to conserve band-width ]
  23.  
  24. I don't know why there is a problem.  If you create an index on say...
  25. (lname, fname, custno) and then declare the following cursor:
  26.  
  27.   DECLARE cust_curs SCROLL CURSOR FOR
  28.     SELECT * FROM customers ORDER BY lname, fname, custno
  29.  
  30. it will do exactly what you need it to do when you open it and start
  31. fetching.
  32.  
  33. Are you new to Informix-4GL?  If so, Informix's book 4GL By Example is
  34. a great book to learn from.  You also might want to pick up a copy of
  35. "db4glgen" my public domain 4GL screen code generator.  Good luck with
  36. your project!
  37.  
  38. DAS
  39. -- 
  40. David Snyder @ Snide Computer Services - Folcroft, PA          Current Release
  41.                                                                is db4glgen-3.9
  42. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  43.