home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / DBDEMO.ZIP / DEMOFLS.ZIP / RBLOCK.TXT < prev    next >
Text File  |  1991-07-01  |  1KB  |  46 lines

  1.         Record Blocking
  2.  
  3.  
  4. This program attempts to show the advantages of Record Blocking
  5. when a large amount of data has to be moved from the server to
  6. the requester.
  7.  
  8. Record blocking is an RDS feature that is invoked transparently
  9. to the user depending upon the precompile options /K=
  10. (ALL, NO UNAMBIG-default), which can be specified at PRECOMPILE and/or
  11. BIND time.
  12.  
  13. This program consists of two modules - blocking() and blocking_no()
  14. which represent exactly the same source code precompiled and bound
  15. differently, i.e.:
  16.  
  17. 1. The source module rblcok.sqc containing blocking() is precompiled
  18.    with the blocking option /K=ALL to invoke blocking:
  19.    (see make file - DBTEAM. )
  20.  
  21.  
  22.    SQLPREP rblock.qsc BANK /b /K=ALL
  23.    SQLBIND rblock.bnd BANK  /K =ALL
  24.  
  25.  
  26. 2. The source module rblockno.sqc containing blocking_no is precompiled
  27.    with the blocking option /K=NO to prohibit blocking:
  28.  
  29.  
  30.    SQLPREP rblockno.sqc BANK /b /K=NO
  31.    SQLBIND rblockno.bnd BANK  /K=NO
  32.  
  33.  
  34. Optimal blocking occurs when the blocksize is a multiple of the rows being
  35. FETCHed.  Blocksize is controlled by two DATABASE CONFIGURATION
  36. parameters - SRV_IOBLOCK and RQR_IOBLOCK.
  37.  
  38. To invoke blocking, the FETCH cursor should be declared unambiguosly.
  39. Blocking WOULD NOT occur if the same cursor is being used for updates.
  40.  
  41.  
  42. CONCEPTS:
  43.  
  44. Ambiguous and unambiguous cursors, precompile and bind options.
  45.  
  46.