dolfinus commented on PR #43797:
URL: https://github.com/apache/airflow/pull/43797#issuecomment-2463986851
Hm, I don't get why this code:
```python
@route.get(...)
def handler(...):
something = session.get(...)
other = session.select(...)
```
does limit thoughput, but this doesn't:
```python
@route.get(...)
async def handler(...):
something = await asyncio.to_thread(session.get, ...)
other = await asyncio.to_thread(session.select, ...)
```
Could you please elaborate?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]