我试图找出有多少数据存储在Vue数据对象中。
假设我有这样的4,000+对象:
personWithAppointment = {
id: 1,
appointment_id: 1,
first_name: 'Jim',
last_name: 'Jim',
// +20 more similar attributes
}我将这些对象存储在Vue中的peopleWithAppointments数据对象中:
data() {
peopleWithAppointments: [
// 4,000 personWithAppointment objects
],
}这是太多的数据吗?10K的结果是不是太多了?50K怎么样?有什么办法让我说出来吗?
如果我将这些数据存储在Vuex商店的状态中,又会怎么样呢?
发布于 2020-08-27 15:33:32
没有任何限制,但在vue中保留10k对象是没有意义的。强烈建议将其移动到任何DB中,如MongoDB。
https://stackoverflow.com/questions/63618670
复制相似问题