@@ -30,12 +30,14 @@ Motivation
30
30
~~~~~~~~~~
31
31
32
32
The {+driver-async+} API is designed to be a replacement for the Motor
33
- library. Motor was created to provide support for Tornado, with asyncio support
34
- added later. Because of this, Motor provides full asyncio and Tornado support,
33
+ library. Motor was created to provide support for Tornado, with `` asyncio`` support
34
+ added later. Because of this, Motor provides full `` asyncio`` and Tornado support,
35
35
but still relies on a thread pool to perform network operations. In some cases,
36
36
this might lead to performance degradation when using the Motor library. To
37
- address this issue, the {+driver-async+} API implements asyncio support directly
38
- into {+driver-short+}.
37
+ address this issue, the {+driver-async+} API implements ``asyncio`` support directly
38
+ into {+driver-short+}. In most cases, the {+driver-async+} API results in
39
+ improved performance over Motor. To see performance benchmarks, see the
40
+ :ref:`pymongo-async-benchmarks` section.
39
41
40
42
Synchronous Versus Asynchronous
41
43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -65,6 +67,8 @@ to your application or use case:
65
67
66
68
- Your application relies on other asynchronous libraries or frameworks, such as FastAPI
67
69
70
+ .. _pymongo-async-benchmarks:
71
+
68
72
Performance Benchmarks
69
73
~~~~~~~~~~~~~~~~~~~~~~
70
74
@@ -186,12 +190,11 @@ Migrate From Motor
186
190
187
191
.. warning:: Motor Deprecation
188
192
189
- Motor will be deprecated one year after the **production release** of the
190
- {+driver-async+} API. We strongly recommend that Motor users migrate to
193
+ Motor will be deprecated on May 14th, 2026. We strongly recommend that Motor users migrate to
191
194
the {+driver-async+} API while Motor is still supported.
192
195
193
196
The {+driver-async+} API functions similarly to the Motor library, but allows
194
- for improved latency and throughput due to directly using Python asyncio instead
197
+ for improved latency and throughput due to directly using Python `` asyncio`` instead
195
198
of delegating work to a thread pool. In most cases, you can directly migrate
196
199
existing Motor applications to {+driver-async+} by using ``AsyncMongoClient`` in
197
200
place of ``MotorClient``, and changing the application's import statements to
0 commit comments