Commit Graph

93 Commits

Author SHA1 Message Date
Shane Harvey
75685c006c
PYTHON-3235 Drop support for Python 3.6 (#939) 2022-05-05 16:13:41 -07:00
Steven Silvester
a319075ba7
PYTHON-3197 Update docs.mongodb.com links in source, API & Reference documentation (#926) 2022-04-13 14:11:13 -05:00
Steven Silvester
474420b2e5
PYTHON-3085 Audit consistent and correct types for _DocumentOut (#893) 2022-03-16 05:56:07 -05:00
Steven Silvester
087950d869
PYTHON-3164 Outdated link from PyMongo docs to community forum (#895) 2022-03-15 15:49:11 -05:00
Steven Silvester
782c5517e0
PYTHON-3146 Test Failure - Could not import extension sphinxcontrib.shellcheck (#889) 2022-03-01 14:10:57 -06:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) (#724)
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Prashant Mital
a32259037f
PYTHON-2724 Add FAQ to PyMongo documentation pointing users to PyMongoArrow (#651) 2021-06-22 16:25:17 -07:00
Bernie Hackett
913860334e PYTHON-2386 Drop support for Python 3.5 2021-02-03 16:33:36 -08:00
Shane Harvey
e01d9a37e7
PYTHON-1320 Remove legacy CRUD methods (#556)
Remove save, insert, update, remove, and find_and_modify.
Remove tools/benchmark.py
2021-01-22 17:11:15 -08:00
Bernie Hackett
1f1670cc35 PYTHON-1974 Drop support for Python 3.4 2021-01-22 15:54:26 -08:00
Bernie Hackett
521f7b9af4 PYTHON-2133 Fix up docs
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Shane Harvey
d1fd3f7e98
PYTHON-2363 Rate limit new connection creations via maxConnecting (#511)
At most 2 connections can be in the pending state per connection pool.
The pending state covers all the work required to setup a new connection
including TCP, TLS, and MongoDB authentication. For example, if two
threads are currently creating connections, a third thread will wait for
either an existing connection to be checked back into the pool or for
one of the two threads to finish creating a connection.

The change reduces the likelihood of connection storms and improves the
driver's ability to reuse existing connections.
2020-11-23 15:55:54 -08:00
Nick Loadholtes
1002938a8e
Fix maxIdleTimeMS typo in docs (#503) 2020-10-14 09:48:06 -07:00
Prashant Mital
426f5fdef7
PYTHON-2292 Fix failing doctest due to UuidRepresentation (#458)
PYTHON-2277 Remove UuidRepresentation DeprecationWarning
2020-07-08 15:45:25 -07:00
Prashant Mital
4800512c36
PYTHON-1839 Deprecate waitQueueMultiple option 2019-08-09 17:07:30 -07:00
Prashant Mital
e01efc7073
PYTHON-1731 Implement callback for unencodable types 2019-03-18 11:43:51 -05:00
Bernie Hackett
cbc81ee793 PYTHON-1536 - PyMongo no longer supports PyPy3 < 3.5 2018-07-03 12:44:40 -07:00
Shane Harvey
a30eb87db3 PYTHON-1495 Document PythonAnywhere incompatibility 2018-03-08 13:00:08 -08:00
Shane Harvey
f0b18ccfc5 PYTHON-1364 Drop support for CPython 3.3. 2017-09-05 17:45:30 -07:00
A. Jesse Jiryu Davis
e9eb3079bc Update connection pool FAQ. 2017-06-09 16:27:28 -04:00
Bernie Hackett
afa14fb3a2 Link to python-bsonjs on pypi 2016-11-29 09:31:27 -08:00
Shane Harvey
0abcb7a683 Advertise python-bsonjs in json_util and FAQ documentation 2016-11-28 17:36:40 -08:00
Bernie Hackett
306e990850 PYTHON-1174 - Clarify usage with multiprocessing 2016-11-18 17:14:12 -08:00
Bernie Hackett
c0767a551a PYTHON-1153 - Make docs build and test under python 3 2016-09-26 15:49:59 -07:00
Luke Lovett
f9aecf139a PYTHON-1139 - Document that PyMongo is not fork-safe. 2016-09-02 12:35:06 -07:00
Bernie Hackett
b320f82457 PYTHON-1068 - Update FAQ entry for Decimal 2016-08-29 15:07:07 -07:00
Bernie Hackett
53a7bea492 PYTHON-1022 - Drop support for Python 3.2
This change removes the u() helper from bson.py3compat
and all of its uses in the driver and tests. PyPy3 continues
to be supported since, even though it is based on python 3.2.5,
it has always supported the u string prefix.

The README and install docs are now explicit about PyPy(3) support.
2016-06-15 10:05:43 -07:00
aherlihy
10608144d6 PYTHON-658 - Support minPoolSize, maxIdleTimeMS 2016-06-14 14:37:06 +02:00
Adam Chainz
a5383b6c49 Convert readthedocs link for their .org -> .io migration for hosted projects
As per their email ‘Changes to project subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-05-31 12:48:11 -07:00
A. Jesse Jiryu Davis
0a6f92a048 FAQ formatting. 2016-03-23 13:09:18 -04:00
A. Jesse Jiryu Davis
d6e1308955 Motor now supports asyncio. 2015-12-03 20:22:03 -05:00
Bernie Hackett
489d5172ee PYTHON-997 - Add FAQ entry about _id and document mutation 2015-10-05 10:52:02 -07:00
aherlihy
07ff7ea721 PYTHON-961 - Add warning to prevent deadlock during getaddrinfo. 2015-07-21 17:07:55 -04:00
Luke Lovett
8dad0f05fd PYTHON-963 - Fix doctests for documentation when running against MongoDB 2.6.x, 3.0.x. 2015-07-10 16:26:01 -07:00
Luke Lovett
880394fe99 PYTHON-222 - Add a 'tzinfo' attribute to CodecOptions that specifies a timezone to which to decode datetime objects. 2015-07-09 13:32:23 -07:00
Bernie Hackett
53353f8fd8 PYTHON-954 - Update links and text for TxMongo 2015-06-30 15:03:06 -07:00
Bernie Hackett
c87424e7af PYTHON-856 - as_class -> document_class
This commit changes the name of the as_class option
in CodecOptions to document_class, to match the name
of the MongoClient option.
2015-03-09 14:32:42 -07:00
Bernie Hackett
4fd6f8a0b1 PYTHON-854 max_pool_size -> maxPoolSize
With this change the max_pool_size named parameter to
MongoClient is removed. It is replaced by the maxPoolSize
MongoDB URI option, which can be passed in a URI, or as a
keyword argument to MongoClient.
2015-03-09 10:08:13 -07:00
A. Jesse Jiryu Davis
b1276e5829 PYTHON-841 FAQ entry for key order and subdocument matching. 2015-02-25 16:15:12 -05:00
A. Jesse Jiryu Davis
7f42430978 PYTHON-847 Remove disconnect(), synonym of MongoClient.close().
close() seems more standard among MongoDB drivers.
2015-02-25 14:52:34 -05:00
A. Jesse Jiryu Davis
71db74dc70 Typo in FAQ. 2015-02-25 00:03:28 -05:00
behackett
c07e543e58 PYTHON-820 - API changes for find/find_one to comply with CRUD spec.
- Changed parameter names (default values and behaviors remain the same):
  - spec (spec_or_id in find_one) -> filter
  - fields -> projection
  - partial -> allow_partial_results

- The "timeout" option is renamed to "no_cursor_timeout" with its default
  changed to False.

- The tailable, await_data, and exhaust options will be replaced with a
  cursor_type option. Valid values:
  - cursor.NON_TAILABLE
  - cursor.TAILABLE
  - cursor.TAILABLE_AWAIT
  - cursor.EXHAUST

- The following options are added:
  - oplog_replay (bool - default False) - only valid with tailable cursors
    against the oplog.
  - modifiers (document - default None) - A dict of query modifiers. See
    http://docs.mongodb.org/manual/reference/operator/query-modifier/#modifiers for
    options.

- The following options are removed, replaced by the "modifiers" option:
  - max_scan
  - snapshot

- The as_class option is removed. Use Collection.with_options instead.
2015-01-19 22:10:56 -08:00
A. Jesse Jiryu Davis
9aa0195df9 PYTHON-785 Update connection-pooling FAQ. 2014-12-10 11:51:31 -05:00
A. Jesse Jiryu Davis
2c6483b348 Rely on standard json module.
Now that we've dropped Python 2.4 and 2.5, we know the standard json module is
available.
2014-12-03 16:32:41 -05:00
A. Jesse Jiryu Davis
a811ef6675 Delete an ancient FAQ about the Year 2038 Problem. 2014-12-03 16:32:41 -05:00
A. Jesse Jiryu Davis
e7b0596442 PYTHON-785 Remove start_request().
Remove MongoClient's methods start_request(), in_request(), and end_request().
The purpose of requests was to provide read-your-writes consistency when using
w=0 write concern. Starting a request pins a socket to a thread so any
operations on that thread end up in the same queue on the server side.

Justification for removing: mongos 2.6+ doesn't support socket pinning by
default, and mongos 2.8+ doesn't support it at all (SERVER-12273), so whatever
weak consistency guarantees a request was supposed to provide are not provided
with sharding.

It's unnecessary with MongoDB 2.6+ since write commands always block and send a
response.

It's a confusing feature that should rarely be used, if ever, yet people
incorrectly use it all the time. It makes our connection pool unmaintainable to
any but the most expert developers.
2014-11-24 22:48:44 -05:00
Bernie Hackett
d2cde8719a PYTHON-665 Drop support for Python 2.4, 2.5, and 3.1
If you need to continue to use any of these Python versions with MongoDB
the 2.x branch of PyMongo will continue to be minimally maintained for
some time.
2014-04-04 16:14:21 -07:00
A. Jesse Jiryu Davis
2538f2c403 Remove link to obsolete Django demo, PYTHON-649. 2014-03-10 17:38:30 -04:00
Bernie Hackett
e3c809bd02 Gracefully kill cursor on capped rollover PYTHON-637
This change does a few things:

- Raises a new exception for CursorNotFound, inheriting from
OperationFailure so we don't break existing code.
- Catches the exception in cursor.Cursor and command_cursor.CommandCursor,
setting __killed to True.
- If the cursor is not tailable, re-raises the exception. This makes it
easier to deal with capped collection rollover when iterating a
tailable cursor.
2014-02-12 08:33:13 -08:00
A. Jesse Jiryu Davis
f4f693e59e Spelling in FAQ. 2013-12-17 12:23:34 -05:00