Skip to content

Commit

Permalink
modify comment for postgresql related info
Browse files Browse the repository at this point in the history
  • Loading branch information
salty-ivy committed Sep 9, 2024
1 parent 048fb94 commit 6063587
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_integration_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,17 @@ async def test_async_sql_page(self):


# Concurrent database queries are not fully supported by Django's backend with
# current integrated database drivers like psycopg2, mysqlclient etc and
# support for async drivers like psycopg3's isn't integrated yet.
# current integrated database drivers like psycopg2
# (considering postgresql as an example) and
# support for async drivers like psycopg3 isn't integrated yet.
# As a result, in ASGI environments(especially with the Django Debug Toolbar),
# either deadlocks can occure in certain cases like when running
# tests/views/async_execute_sql_concurrently in ASGI environment
# or queries will execute synchronously. Check out
# https://forum.djangoproject.com/t/are-concurrent-database-queries-in-asgi-a-thing/24136/2
# https://forum.djangoproject.com/t/are-concurrent-database-queries-in-asgi-a-thing/24136/2

# Work being done so far for asynchrounous database backend
# https://github.com/django/deps/blob/main/accepted/0009-async.rst#the-orm


Expand Down

0 comments on commit 6063587

Please sign in to comment.