home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / informix / 1774 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  2.5 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!emory!snide.com
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: can not sort rows
  5. Message-ID: <9382@emory.mathcs.emory.edu>
  6. Date: 23 Aug 92 00:13:07 GMT
  7. Sender: walt@mathcs.emory.edu
  8. Reply-To: dave.snyder@snide.com (Dave Snyder)
  9. Lines: 44
  10. X-Informix-List-ID: <list.1395>
  11.  
  12. Quoting clay irving...
  13. > We've written a I-4GL program to process an order table contain 17,000 
  14. > rows. The table is being joined to several other tables.  There is a good 
  15. > amount of substring manipulation and temporary tables.  We receive a 
  16. > message "Can not sort rows" -- "System error -5".  An Informix SE 
  17. > indicated that temporary tables are being built in rootdbs, regardless of 
  18. > the dbspace the working database is in.  I added a 100MB chunk to rootdbs 
  19. > and a 150MB chunk to the working dbspace, but I still get the same error 
  20. > message. I hate to keep throwing disk space at the problem until it 
  21. > <hopefully> goes away -- Does anyone have an idea what's going on and a 
  22. > possible solution?
  23. Wow, I knew this could happen but I've never heard of it until now.  First
  24. of all, ALL tmp tables are stored in the rootdbs.  Now for the answer to
  25. your problem...
  26.  
  27. An online table can have a maximum of ~200 extents.  The minimum size of
  28. an extent is 16K.  Now quick math will say, "DAMN! A table can only be
  29. 3.2 meg."  That's not correct thinking though.  Every so many extents,
  30. online doubles the size of the extent.  For example:
  31.     Extent #     Size
  32.     --------     ----
  33.         1         16K
  34.        64         32K
  35.       128         64K
  36.       192        128K
  37.       etc.       etc.
  38.  
  39. Now I forget the exact numbers but you get the idea.  Anyway, when a tempory
  40. table is created by a SELECT statement in online, it gets the default extent
  41. size and the default next_extent size.  This will eventually give a limit
  42. on the maximum size of a table... approx. 8 megabytes.  Although I can't
  43. remember the above numbers, that 8meg sticks in my mind because we did
  44. the calculations in Online Administrator's class.  This is my guess at
  45. what your problem is based on what you said.  My suggestion is to create
  46. the temp tables yourself (with appropriate extent sizes), select into them,
  47. and then drop them when you are finished.
  48.  
  49. DAS
  50. -- 
  51. David A. Snyder @ Snide Inc. - Folcroft, PA                    Current Release
  52.                                                                is db4glgen-3.7
  53. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  54.