Any recommendations for deep data structures with Backbone?

后端 未结 3 850
野趣味
野趣味 2021-01-30 23:46

I\'ve run into a headache with Backbone. I have a collection of specified records, which have subrecords, for example: surgeons have scheduled procedures, procedures have equip

3条回答
  •  忘了有多久
    2021-01-30 23:53

    I would separate out the different surgeons, procedures, equipment, etc. as different resources in your web service. If you only need to update the equipment for a particular procedure, you can update that one procedure.

    Also, if you didn't always need all the information, I would also lazy-load data as needed, but send down fully-populated objects where needed to increase performance.

提交回复
热议问题