clara

2021-09-15T16:19:33.009500Z

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.

ethanc 2021-09-15T19:43:13.012100Z

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.

👍 1
2021-09-15T21:31:17.013500Z

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