mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-19 06:46:37 +00:00
⚡️(backend) change db state instead of using long running row lock
When analysing a file, the previous commit introduced a row level lock to make sure we would analyse and promote a single file. This commit changes the locking mechanism so that it happens with the upload state which avoids long running db locks and potential perf issues.
This commit is contained in:
@@ -846,8 +846,8 @@ class FileUploadStateChoices(models.TextChoices):
|
||||
"""Possible states of a file."""
|
||||
|
||||
PENDING = "pending", _("Pending")
|
||||
ANALYZING = "analyzing", _("Analyzing")
|
||||
# Commented out for now, as we may need this when we implement the malware detection logic.
|
||||
# ANALYZING = "analyzing", _("Analyzing")
|
||||
# SUSPICIOUS = "suspicious", _("Suspicious")
|
||||
# FILE_TOO_LARGE_TO_ANALYZE = (
|
||||
# "file_too_large_to_analyze",
|
||||
|
||||
Reference in New Issue
Block a user