elixir-luxembourg / daisy

Data Information System (DAISY) is a data bookkeeping application designed to help Biomedical Research institutions with their GDPR compliance.
GNU Affero General Public License v3.0
12 stars 10 forks source link

Improve performance of access request creation endpoint #443

Closed neoflex closed 11 months ago

neoflex commented 11 months ago

Is your feature request related to a problem? Please describe.

The request to retrieve the form to create a new access on a dataset takes too much time to load.

Describe the solution requested Improve response time of the endpoint

Describe possible alternatives

Other info context

Example query:

curl 'http://127.0.0.1:5050/dataset/2/access/add/' \ -H 'Accept: text/html, /; q=0.01' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Connection: keep-alive' \ -H 'Cookie: csrftoken=****' \ -H 'DNT: 1' \ -H 'Referer: http://127.0.0.1:5050/dataset/2/' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36' \ -H 'X-Requested-With: XMLHttpRequest' \ -H 'sec-ch-ua: "Chromium";v="115", "Not/A)Brand";v="99"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --compressed

43s to complete!