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
Source: (Any branch) PPUC/PxPUC/views.py in ResearcherSearchList
Description: When searching for something with many words the search algorithm causes a stack overflow due to the loop iterating so many times over the query and doing so many database operations.
To Reproduce: Type "No corroborative evidence is obtained the complaint shall be classified as unfounded" into the search bar on a local version and look for the error within the terminal window. The error:
Source: (Any branch) PPUC/PxPUC/views.py in ResearcherSearchList
Description: When searching for something with many words the search algorithm causes a stack overflow due to the loop iterating so many times over the query and doing so many database operations.
To Reproduce: Type "No corroborative evidence is obtained the complaint shall be classified as unfounded" into the search bar on a local version and look for the error within the terminal window. The error:
django.db.utils.OperationalError: parser stack overflow
[26/Jun/2023 15:40:03] "GET /PxPUC/researcher?query=%22No%20corroborative%20evidence%20is%20obtained%20the%20complaint%20shall%20be%20classified%20as%20unfounded%22 HTTP/1.1" 500 245493
Solution: Redo the search algorithm logic such that a loop over a long string isn't needed
The text was updated successfully, but these errors were encountered: