Bulk updates are extremely slow after upgrading to 5.2

Multiple update of one document in one _bulk too slow There we also discuss it