<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank-you Wolfgang.<br>
    <br>
    I had wondered whether that was the right thing to do. Thank-you for
    confirming it.<br>
    I will have to investigate whether it is worth the effort.<br>
    <br>
    Chris<br>
    <br>
    <div class="moz-cite-prefix">On 30/09/2012 13:06, Wolfgang Laun
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANaj1LfkxPWDEyuCDXv_uq90Vr6KYCGm9XHk1QDAqv18NaPXBQ@mail.gmail.com"
      type="cite">There's a section in the documentation "Persistence
      and Transactions", which explains how to save and reload a
      session. It will have to be a StatefulKnowledgeSession, but that
      shouldn't matter - you just lose the simple "one shot" execution
      API call, and you don't want this any more anyway.<br>
      <br>
      But have you timed the insertion of the "reference facts", after
      creating a StatefulKnowledgeSession? It's conceivable that this
      isn't really taking all that long, but of course it depends on the
      structure of the rules and how much work needs to be done to get
      them into the Rete structure. Anyway, this time is the maximum
      gain, but deserilaizing the inserted fact in the (Rete) context of
      the saved session is going to cost a little, too.<br>
      <br>
      -W<br>
      <br>
      <div class="gmail_quote">On 30 September 2012 12:10, Chris Selwyn
        <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:chris@selwyn-family.me.uk" target="_blank">chris@selwyn-family.me.uk</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          I have a need to execute a set of rules on a complicated
          hierarchical data structure where some of the rules use a
          bunch of reference facts.<br>
          <br>
          At the moment I load the reference facts and the hierarchical
          structure into the WM of a stateless session on every
          execution.<br>
          There are a lot of reference facts and they start off in the
          same state on every execution though they can get modified as
          part of the rules execution.<br>
          I would really like to be able to save the WM after inserting
          the reference facts so that I can start each execution with
          those facts pre-loaded and thereby avoid loading them each
          time.<br>
          <br>
          Is this an easy thing to do? Could someone give me some
          pointers?<br>
          <br>
          Chris<br>
          <br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/rules-users"
            target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>