diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 1ea0c2b4..bb52e1cd 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -4,6 +4,19 @@ FAQ This page contains a list of some frequently asked questions. +Performance +=========== + +Querying across relational fields like :class:`~django.db.models.ForeignKey` and :class:`~django.db.models.ManyToManyField` is really slow. Is there a way to improve the speed of these joins? +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + +Not really. Joins use MongoDB's :doc:`$lookup +` operator, which doesn't perform +well with large tables. + +The best practice for modeling relational data in MongoDB is to instead use +:doc:`embedded models `. + Troubleshooting ===============