Page 1 of 1

Role permissions mapping API performance is slow

Posted: Thu May 05, 2022 4:41 am
by sanketparte
Hi, I am using mayanedms/mayanedms:3.4.6(docker image) and using mayan API's inside my django application.
But role permission mapping API(/api/roles/<role_id>/) is very slow
I am doing PATCH request to this API with permissions_pk_list in the payload, but it is taking around 14sec to get the response on production machine, whereas in the local environment it is taking around 6sec
Both the applications are running on the same machine.
I am not getting what is the issue here, can anyone tell me

Re: Role permissions mapping API performance is slow

Posted: Sun May 22, 2022 3:26 am
by cephstore
Post more information about your installations. There is not much information to go on from the description.

Also that version is very old, try a recent version.

Re: Role permissions mapping API performance is slow

Posted: Fri Jul 15, 2022 6:18 am
by sanketparte
Now I am running the mayanedms/mayanedms:3.5.11 docker image inside a container with a different container for DB(PostgreSQL). And my Django application is running on another container. And I am using Mayan for document management in my Django application through REST APIs.
Mayan, Postgresql, and my Django application all are running on the same docker network and the same machine.
I am accessing the Mayan APIs through Mayan container host/IP and port(8000).