mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
documentation: Add comment to disable parallel gather for DISTINCT ON query to prevent OOM issues in large VOD libraries.
This commit is contained in:
parent
b7ee17ffba
commit
78d1f70eda
1 changed files with 3 additions and 1 deletions
|
|
@ -968,8 +968,10 @@ def _xc_fetch_priority_distinct_relations(
|
|||
.values('pk')
|
||||
)
|
||||
with transaction.atomic():
|
||||
# Optional: disable parallel gather for this DISTINCT ON query if Docker
|
||||
# /dev/shm pressure causes worker OOM on very large VOD libraries.
|
||||
#with connection.cursor() as cursor:
|
||||
#cursor.execute("SET LOCAL max_parallel_workers_per_gather = 0")
|
||||
# cursor.execute("SET LOCAL max_parallel_workers_per_gather = 0")
|
||||
winning_ids = list(winning_ids_qs.values_list('pk', flat=True))
|
||||
if not winning_ids:
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue