Best way to have calculated columns
-
I have 2 columns in my table that are for year and price and I want to have 2 additional columns, one that calculates inflation and another that calculates change from one row to the next. I would just like to know what’s the best way of doing that?
If I wanted to do that right now, I would do it during output, but I’m afraid that’s probably not the most efficient way since it would re-calculate on every page load and could be a resource-hog if there was a lot of traffic.
Is there a way to maybe do it when the table is saved from admin section and then I can have it calculate and populate those fields at that point so that when the table is loaded from the front end, it just loads it as a regular table?
- The topic ‘Best way to have calculated columns’ is closed to new replies.