How to Autoload Calculations?

You can use the global preparations block to add a preparation to all read actions, and then you can use the build/1 preparation to add to the query.

prepare build(load: [:calc])

The only reason not to autoload would be performance :slight_smile:. I generally avoid it, but if its a simple calculation and you access it all the time, its not a big deal at all.