mikowals/batch-insert

Need for disabling reactivity?

karlpokus opened this issue · 2 comments

Hi @mikowals

Thanks for making this package. Just what I need. Just one question. Will a batch-insert amount to (1) a total of one DDP update message or (2) as many DDP update messages as docs inserted into mongo?

I ask because if it's the latter I'd have to figure out a way to temporarily disable reactivity for connected clients or they'd probably crash.

/ Karl

You can view the DDP messages to a client using the methods here or this package.

Client problems I have seen from too many DDP updates are usually when you are updating the DOM for many document changes in series rather than updating the DOM once after all changes have arrived. I think the number of DDP messages received is irrelevant.

@mikowals

Thanks for the articles.

I think the number of DDP messages received is irrelevant.

Sound like you know a way to render the DOM after a specified amount of docs has been inserted. Is this possible?