collective / collective.jsonmigrator

JSON based migrations for Plone
GNU General Public License v2.0
8 stars 21 forks source link

Improve performance by loading the items in a thread. #3

Closed jone closed 10 years ago

jone commented 10 years ago

Loading each item with HTTP is very time consuming. By loading the items in a thread the main migration thread does no longer need to wait while loading each item. The queue only loads a maximum amount of items (default: 10) so that the RAM does not get filled up.

I was able to speed up a small, not representative migration to 30% of the original time.