home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!uwm.edu!zazen!schaefer.math.wisc.edu!horn
- From: horn@schaefer.math.wisc.edu (Jeffrey Horn)
- Subject: One rule or many???
- Message-ID: <1992Jul27.145018.11141@schaefer.math.wisc.edu>
- Organization: Univ. of Wisconsin Dept. of Mathematics
- Date: Mon, 27 Jul 92 14:50:18 GMT
- Lines: 22
-
- Suppose that you want to use rules to implement two or more foreign-key
- checks on columns in a table. Say columns a, b, c, ... of table X.
- Is it better to implement one large rule that checks all the constraints,
- or many small rules that each check one constraint? That is should one
- have one rule
-
- create rule Xkahuna after update of X execute procedrue Xbigproc;
-
- or many rules
-
- create rule Xa after update of X(a) execute procedure Xaproc;
- create rule Xb after update of X(b) execute procedure Xbproc;
- .
- .
- .
-
- If there is no "best" method, what are the advantages of each method? What
- about if one is running on a parallel architechture?
-
- Thanks for your input,
-
- Jeffrey Horn
-