Fork me on GitHub

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.


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

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