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
TODO(bhenning) in core/domain/stats_domain.py: Monitor sizes (lengths of submitted_answer_list) of these objects and determine if we should enforce an upper bound for submitted_answer_list.
#20309
Closed
poloreoyeniji opened this issue
May 14, 2024
· 1 comment
There is a potential need for the optimization of the StateAnswers class used to store submitted answers within an exploration state. The StateAnswers class stores a list of SubmittedAnswer objects within the submitted_answer_list attribute. There is currently no limit on the size of this list. Unbounded growth of the submitted_answer_list could lead to unexpected behaviour, especially when dealing with a large number of answers. We need to monitor the sizes encountered for the submitted_answer_list. Then, based on the monitored data, evaluate whether enforcing an upper bound on the size of submitted_answer_list is beneficial.
The text was updated successfully, but these errors were encountered:
There is a potential need for the optimization of the
StateAnswers
class used to store submitted answers within an exploration state. TheStateAnswers
class stores a list ofSubmittedAnswer
objects within thesubmitted_answer_list
attribute. There is currently no limit on the size of this list. Unbounded growth of thesubmitted_answer_list
could lead to unexpected behaviour, especially when dealing with a large number of answers. We need to monitor the sizes encountered for thesubmitted_answer_list
. Then, based on the monitored data, evaluate whether enforcing an upper bound on the size ofsubmitted_answer_list
is beneficial.The text was updated successfully, but these errors were encountered: