Updated docs
This commit is contained in:
parent
a2eb876f8c
commit
ae20c785ea
@ -2,7 +2,7 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Changes in dev
|
Changes in 0.6
|
||||||
==============
|
==============
|
||||||
|
|
||||||
- No longer always upsert on save for items with a '_id'
|
- No longer always upsert on save for items with a '_id'
|
||||||
|
@ -431,6 +431,12 @@ If a dictionary is passed then the following options are available:
|
|||||||
:attr:`unique` (Default: False)
|
:attr:`unique` (Default: False)
|
||||||
Whether the index should be sparse.
|
Whether the index should be sparse.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
|
||||||
|
Inheritance adds extra indices.
|
||||||
|
If don't need inheritance for a document turn inheritance off - see :ref:`document-inheritance`.
|
||||||
|
|
||||||
|
|
||||||
Geospatial indexes
|
Geospatial indexes
|
||||||
---------------------------
|
---------------------------
|
||||||
@ -447,7 +453,7 @@ point. To create a geospatial index you must prefix the field with the
|
|||||||
location = DictField()
|
location = DictField()
|
||||||
meta = {
|
meta = {
|
||||||
'indexes': [
|
'indexes': [
|
||||||
'*location.point',
|
'*location.point',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -511,6 +517,8 @@ This ensures that the shard key is sent with the query when calling the
|
|||||||
'shard_key': ('machine', 'timestamp',)
|
'shard_key': ('machine', 'timestamp',)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. _document-inheritance:
|
||||||
|
|
||||||
Document inheritance
|
Document inheritance
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ MongoDB. To install it, simply run
|
|||||||
The complete API documentation.
|
The complete API documentation.
|
||||||
|
|
||||||
:doc:`upgrade`
|
:doc:`upgrade`
|
||||||
The Upgrade guide.
|
How to upgrade MongoEngine.
|
||||||
|
|
||||||
:doc:`django`
|
:doc:`django`
|
||||||
Using MongoEngine and Django
|
Using MongoEngine and Django
|
||||||
|
Loading…
x
Reference in New Issue
Block a user