home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / ingres / 1005 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!uwm.edu!zazen!schaefer.math.wisc.edu!horn
  3. From: horn@schaefer.math.wisc.edu (Jeffrey Horn)
  4. Subject: One rule or many???
  5. Message-ID: <1992Jul27.145018.11141@schaefer.math.wisc.edu>
  6. Organization: Univ. of Wisconsin Dept. of Mathematics
  7. Date: Mon, 27 Jul 92 14:50:18 GMT
  8. Lines: 22
  9.  
  10. Suppose that you want to use rules to implement two or more foreign-key
  11. checks on columns in a table.  Say columns a, b, c, ... of table X.  
  12. Is it better to implement one large rule that checks all the constraints, 
  13. or many small rules that each check one constraint?  That is should one
  14. have one rule
  15.  
  16. create rule Xkahuna after update of X execute procedrue Xbigproc;
  17.  
  18. or many rules
  19.  
  20. create rule Xa after update of X(a) execute procedure Xaproc;
  21. create rule Xb after update of X(b) execute procedure Xbproc;
  22. .
  23. .
  24. .
  25.  
  26. If there is no "best" method, what are the advantages of each method?  What
  27. about if one is running on a parallel architechture?
  28.  
  29. Thanks for your input, 
  30.  
  31. Jeffrey Horn
  32.