meteor - Efficiency of storing information on dom or make simple mongodb query? -


i have linked-list, thinking of storing parent's information on dom clutter html tad-bit, simple mongodb call information. know marginal computational resource difference , storing information on dom more efficient, best inference can make mongodb because have subscribed information, have access , making mongodb query takes little resource.

i suppose @ end of day, approach better?

its may better take mongodb, because you're sure have latest data , wont need additional code updating dom.

the concept in meteor dom can have data context can use find mongodb data without having store in dom. concept removes need store data within dom elements.

for example have

html

{{#with data}}     dom {{/with}} 

template

template.mytemplate.data = function() {     return { data: xx} } 

this way can have dynamic/reactive data without having update dom.

with new meteor ui (blaze release) set 0.8.0 pass down data template

{{>mytemplate okenabled=false}} 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -