Optimization of update_posts_rshares procedure (created dedicated temporary... See merge request !521