Is it better to store data as an object of objects where each key is an ID, or an array of objects where the ID is stored as a prop in each object?

后端 未结 0 1562
独厮守ぢ
独厮守ぢ 2021-01-05 02:01

I\'m trying to figure out how to structure data that allows for easy and quick retrieval when given a lookup ID. There are two methods I\'m considering:

METHO

相关标签:
回答
  • 消灭零回复
提交回复
热议问题