Fork me on GitHub

I'd like to have an attribute that is a boolean "flag" like "active" is there an idiomatic way? I was thinking to retract and assert the fact but it doesn't really fit I think because I want to show "inactive" in the ui. Do I use an attribute with "bool" value?

Ben Sless11:12:11


Ben Sless11:12:26

But you can also perform historical queries

Ben Sless11:12:30

Adding the "active" property will also complicate all other business logic because you have to add another clause for it. On the other hand if you save history then the active property doesn't add data


I advise against using history for any domain information. Only use it for audit purposes.

🙂 1

It is not designed for that use case. Large perf penalties, constraints on what you can do. Valentin has a good post on this topic:

Ben Sless10:12:04

This reads like bitemporality