Josh
September 2, 2021, 4:53pm
3
Hi @Mdkhamru , unfortunately this is currently a performance issue with asset sharing and has been logged here (you will notice the same issues on our production servers):
opened 04:37PM - 01 Sep 20 UTC
closed 11:34PM - 19 Apr 22 UTC
Back end
## Description
Sharing a form if it's already shared with a large number of u… sers is very slow. It takes about a few minutes to complete the operation after it's shared with a few hundred users and during that period the UI is unresponsive. It happened on the installation of Kobo on a separate server (Ubuntu 18.04, 16GB RAM, 8 cores CPU). The form itself is not very long, it has about twenty questions.
## Steps to Reproduce
Create a form, share it with many users and at some point, the sharing will become very slow.
## Expected behavior
The form sharing operation should be optimized for a large number of users and the system should be responsive during the operation.
## Additional details
https://community.kobotoolbox.org/t/slow-sharing-permissions/11351/3
It’s in the pipeline to make this more performant. Please refer to the advice here in the meantime if you are sharing many forms through the UI:
Hi @Aus7yne , this is a troubling issue but let’s continue with that discussion here:
A solution to work around the current slowness with large permission assignments is to clone your project (multiple times, if needed) and assign smaller batches of users to each clone. You can then combine the exported data in post-processing.
For projects with many shared users, there have been cases of users losing some of their permissions when you make changes to the project’s permissions, even if for a …
You should however be able to use the API for managing form permissions (or even through the Django shell) as a work-around.
3 Likes