@@ -28,19 +28,14 @@ library <https://www.mongodb.com/docs/drivers/motor/>`__. In this guide, you can
28
28
identify the changes you must make to migrate an application from {+driver-short+} or
29
29
Motor to the {+driver-async+} driver.
30
30
31
- .. note::
32
-
33
- The {+driver-async+} driver is currently in beta. To learn how to provide feedback
34
- or report issues, see :ref:`pymongo-issues-help`.
35
-
36
31
Synchronous Versus Asynchronous
37
32
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38
33
39
34
To determine whether to migrate to the {+driver-async+} driver or to continue using
40
35
Synchronous {+driver-short+}, consider the information in this section.
41
36
42
37
Synchronous {+driver-short+} is preferable if the following criteria applies to your
43
- application or usecase :
38
+ application or use case :
44
39
45
40
- Your application is simple in execution, or you prefer to avoid using asynchronous calls
46
41
in your code
@@ -51,7 +46,7 @@ application or usecase:
51
46
- You prefer the simplicity of synchronous logic when debugging your application
52
47
53
48
Consider migrating to the {+driver-async+} driver if the following criteria applies
54
- to your application or usecase :
49
+ to your application or use case :
55
50
56
51
- Your application implements large, highly concurrent workloads (on the order of
57
52
thousands of concurrent operations)
@@ -64,6 +59,12 @@ to your application or usecase:
64
59
Migrate From Motor
65
60
------------------
66
61
62
+ .. warning:: Motor deprecation
63
+
64
+ Motor will be deprecated one year after the production release of the {+driver-async+}
65
+ driver. We strongly recomend that Motor users migrate to the {+driver-async+} driver while
66
+ Motor is still supported.
67
+
67
68
The {+driver-async+} driver functions similarly to the Motor library, but allows
68
69
for improved latency and throughput due to directly using Python Asyncio instead
69
70
of delegating work to a thread pool. In most cases, you can directly migrate
@@ -83,9 +84,9 @@ read and write operations in Motor compared to {+driver-async+}:
83
84
from pymongo import AsyncMongoClient
84
85
85
86
To see a list of the asynchronous methods available in the {+driver-async+}
86
- driver, see the :ref:`pymongo-async-methods` section in the {+driver-short+} to
87
- {+driver-async+} guide. To learn about the versions of Motor that correspond to {+driver-short+},
88
- see the :ref:`_pymongo-motor-compatibility` section of the Compatibility guide.
87
+ driver, see the :ref:`pymongo-async-methods` section. To learn about the versions of Motor
88
+ that correspond to {+driver-short+}, see the :ref:`pymongo-motor-compatibility` section of
89
+ the Compatibility guide.
89
90
90
91
The following section shows the method signature changes that you must implement
91
92
in your application when migrating from Motor to the {+driver-async+} driver.
0 commit comments