You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the task
This is a screenshot of the Django signals that get trigger when we upload an image for a question. This plio has three questions configured (hence three items and three questions).
The format is instance type updated followed by instance ID.
Notice that the Django save_post signal triggers for all items, all questions, video and then for plio.
It seems we're making way too many calls than needed to support auto-save functionality. The problems with the above implementation would be:
A lot of requests at the backend may impact the server performance for other users.
The responses to these requests includes lots of computation (like plio joins with video, plio joins with items, every item joins with question, question joins with image)
In case of more questions for a plio, this value multiplies.
Expected behavior
Plan how we can reduce the number of requests
Audit other areas where this is happening
The text was updated successfully, but these errors were encountered:
Describe the task
This is a screenshot of the Django signals that get trigger when we upload an image for a question. This plio has three questions configured (hence three items and three questions).
The format is instance type updated followed by instance ID.
Notice that the Django
save_post
signal triggers for all items, all questions, video and then for plio.It seems we're making way too many calls than needed to support auto-save functionality. The problems with the above implementation would be:
Expected behavior
The text was updated successfully, but these errors were encountered: