Part of the current app we are working on includes an occasional import of around 20,000 rows of product data. I’ve set up a server method that takes rows data one by one using the papa parse library.
This works really well and the page gets great feedback on the progress of the import as it happens. One thing that does block though is other pages’ subscriptions.
I think I misunderstood what
this.unblock() could do to prevent this from happening but I’m guessing it perhaps due to it being single-threaded?
In Rails-land, it would be customary to offload this to something like Sidekiq but I was hoping this is something that could have been handled by Meteor alone?
Papa parse does have an option for running the import with an HTML5 worker but I run into
meteorInstall is not defined if I try enabling this.
Does anyone have any best practices for this sort of server intensive task? TIA!