Fork me on GitHub
#clara
<
2021-09-15
>
colinkahn16:09:33

Is it possible to reevaluate a defquery and run it against an existing session? I'm trying to iterate on a built up session in the REPL and it would be too time consuming to rerun the code to build the session each time.

ethanc19:09:13

I don’t believe so, if i remember the implementation of queries with respect to Clara’s rule network, a Query is compiled similar to a rule meaning that the graph would be be in danger of changing if a user was allowed to re-evaluate a query. Changes to the graph require the session to be re-made.

👍 2
colinkahn21:09:17

Thanks had to ask 🙂 , I ended up doing something where I collected all the inserts and rebuilt the session.