Ng Kia Bee,

Each rete instance holds a context that includes not only your facts but
also your rules. Depending on how you are organizing your system and your
purpose, you may or may not need separate rete instances.

In many simple cases one instance works just fine. However, if you need to
scale your system, e.g. a web server with a large number of users, you may
want to allocate rete instances from a pool on a per user/session basis
(don't forget to properly clean up the instances before returning them to
the pool.) A web server using a single rete instance for all clients is not
a good idea for many reasons.

Another reason to use more than a single instance could be required by the
structure of your rules and facts. The number of partial matches can grow
very large and may require keeping completely unrelated facts in separate
instances. Be sure you understand how the matching process works and design
your patterns carefully to avoid unintended matching.

The new module feature may prove to be helpful in your situation. It can be
used to partition your facts/rules into "features" or "aspects" of your
overall system using a few well defined interactions between them.

Without knowing your specifics it is difficult to advise you on the best
approach. See the documentation and FAQ for more details from previous
threads about this and related topics.

User Manual: http://herzberg.ca.sandia.gov/jess/docs/index.html

FAQ: http://herzberg.ca.sandia.gov/jess/FAQ.html

jess-users Archive:
index - http://www.mail-archive.com/[email protected]
MSG1  - http://www.mail-archive.com/[email protected]/msg00831.html
MSG2  - http://www.mail-archive.com/[email protected]/msg00835.html
MSG3  - http://www.mail-archive.com/[email protected]/msg00087.html

Modules: http://herzberg.ca.sandia.gov/jess/docs/60/language.html#defmodules

RETE: http://herzberg.ca.sandia.gov/jess/docs/60/rete.html

Good luck!

alan


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ng Kia Bee
Sent: Sunday, January 20, 2002 7:31 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: JESS: 1 or more Rete for sets of unrelated facts


Hi all,
I'm new to Jess and hope someone can provide me an
answer on the below question:

I have a few set of facts that are not related to each
others. Should I new a few instances of Rete to hold
each of these set of facts or just one Rete to hold
all the facts.

What is the pros and cons of both approaches?


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------



--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to