Best way to maintain a customer's account balance

前端 未结 8 718
孤独总比滥情好
孤独总比滥情好 2021-02-06 10:24

Is it better to have a field in the database that stores the customers account balance or use views and queries to generate the information.

8条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-06 10:59

    That would be a function of how often you need to access this information. If its once in a while, then I'd say go ahead and recalculate it.

提交回复
热议问题