Normalizing everything - Avoid Arrays?


#1

so after i learned that an array’s reactivity is not fine-grained, i had this instinct to keep everything normalized.

Store users’ searches in a Searches collection VS. in user.profile.searches. So I’ve been doing this with all of my collections, and it works great.

The limit of stored searches per user is 20, and I found this easier to implement as an array, denormalized, than as a collection. Meteor doesn’t mix well with capped collections??

is there any downside to this approach that i am not seeing? It seems avoiding arrays in mongo (especially with mongo+meteor) when possible is a nice rule of thumb.

thanks for input!