Speed: Store aggregate values in database or calculate with Jinja?
问题 Language: Python Database: SQLite Using: Flask, SQLAlchemy ORM My question itself is probably an overkill, but I'm very curious. I have columns in an SQLAlchemy Table that hold certain values that I need to perform mathematical operations on, to display aggregate values or calculated values. Let's assume: Column 1 : 0 Column 2 : 5 Column 3 : 2 Column 4 : 6 In an HTML table, I need to rely on those values to calculate and display a result of an arithmetic operation on them. Example: ( Column 1