-
Notifications
You must be signed in to change notification settings - Fork 60
True async query execution #9
Copy link
Copy link
Open
Labels
area: api-compliancePython API behavior and typing: DB-API 2.0, exceptions, type stubs, new APIs.Python API behavior and typing: DB-API 2.0, exceptions, type stubs, new APIs.enhancementNew feature or requestNew feature or requesttriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
area: api-compliancePython API behavior and typing: DB-API 2.0, exceptions, type stubs, new APIs.Python API behavior and typing: DB-API 2.0, exceptions, type stubs, new APIs.enhancementNew feature or requestNew feature or requesttriage doneIssues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.
Is your feature request related to a problem? Please describe.
Currently,
mssql-pythondoes not support true async execution, forcing developers to use thread-based workarounds (asyncio.to_thread()oraioodbc). This leads to performance limitations, increased memory usage, and suboptimal scalability in high-throughput applications, such as web servers and data processing pipelines.For applications using FastAPI, Django Async, or AI/ML workloads, true async support is critical for handling multiple concurrent database operations efficiently. Without it, developers face blocking I/O that slows down event-driven applications.
Describe the solution you'd like
asyncio(asyncio.StreamReader/asyncio.StreamWriter).await conn.execute("SELECT ...").async for row in cursor.Example API: