Skip to content

Latest commit

 

History

History
106 lines (81 loc) · 4.03 KB

known-issues.rst

File metadata and controls

106 lines (81 loc) · 4.03 KB

Known issues and limitations

This document summarizes some known issues and limitations of this library. If you notice an issue not listed, use the :ref:`issue-tracker` to report a bug or request a feature.

Like any database, MongoDB has some particularities. Also keep in mind that because MongoDB is a NoSQL database, it's impossible to implement SQL-specific functionality.

Model fields

Querying

Database functions

Transaction management

Query execution uses Django and MongoDB's default behavior of autocommit mode. Each query is immediately committed to the database.

Django's :doc:`transaction management APIs <django:topics/db/transactions>` are not supported.

Database introspection

Due to the lack of ability to introspect MongoDB collection schema, :djadmin:`inspectdb` and :option:`migrate --fake-initial` aren't supported.

Caching

:doc:`Database caching </topics/cache>` uses this library's :djadmin:`createcachecollection` command rather Django's SQL-specific :djadmin:`createcachetable`.

Secondly, you must use the :class:`django_mongodb_backend.cache.MongoDBCache` backend rather than Django's built-in database cache backend, django.core.cache.backends.db.DatabaseCache).