activepivot

Prevent custom aggregated object from being serialized and send to ActivePivot Live


We are aggregating some large matrices and have a custom Matrix class. These are aggregated with a custom aggregation function. A formatter takes care of showing part of the aggregated matrix measure for debugging, but it seems that even with a formatter in place, the entire Matrix, is still serialized and send to Live when that measure is shown. Is there a way to avoid that?


Solution

  • You should be able to do your formatting in a basic post-processor, taking in underlying value your matrix and returning the formatted value you wish to display. Then you can use this new measure instead of the previous one