summaryrefslogtreecommitdiff
path: root/docs/topics/db/optimization.txt
AgeCommit message (Collapse)Author
2025-10-29Fixed #36329 -- Removed non-code custom link text when cross-referencing ↵Clifford Gama
Python objects. Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
2025-10-17Fixed #36665 -- Improved manager usage guidance in ↵Segni Mekonnen
docs/topics/db/optimization.txt.
2025-10-16Fixed #28586 -- Added model field fetch modes.Adam Johnson
May your database queries be much reduced with minimal effort. co-authored-by: Andreas Pelme <andreas@pelme.se> co-authored-by: Simon Charette <charette.s@gmail.com> co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2025-08-25Refs #36485 -- Rewrapped docs to 79 columns line length.David Smith
Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content.
2025-08-25Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in ↵David Smith
docs.
2025-03-13Fixed incorrect formatting for inline pluralized code references in docs.Clifford Gama
2024-08-05Used :pypi: role in docs where appropriate.Mariusz Felisiak
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-10Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
2022-04-28Removed hyphen from pre-/re- prefixes.David
"prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening
2022-03-10Changed some words to use inline markup.David Smith
2022-02-08Fixed #32518 -- Doc'd that QuerySet.contains() should not be overused.John Hollingsworth
Thanks Tim McCurrach for the idea.
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-03-06Fixed #24141 -- Added QuerySet.contains().Johan Schiff
2021-01-27Changed "Don't overuse count() or exists()" example to Python.Adam Johnson
2020-03-09Fixed #31350 -- Fixed typo in docs/topics/db/optimization.txt.Shrikrishna Singh
2019-11-12Fixed #30828 -- Added how to remove/insert many-to-many relations in bulk to ↵David Foster
the database optimization docs.
2019-10-14Refs #26207 -- Removed obsolete note about slow constructing a model with ↵Simon Charette
deferred fields. This is not true since 7f51876 removed the necessity of creating proxy model classes at runtime for each deferred field sets.
2019-09-10Removed versionadded/changed annotations for 2.2.Mariusz Felisiak
2019-09-06Fixed #30573 -- Rephrased documentation to avoid words that minimise the ↵Tobias Kunze
involved difficulty. This patch does not remove all occurrences of the words in question. Rather, I went through all of the occurrences of the words listed below, and judged if they a) suggested the reader had some kind of knowledge/experience, and b) if they added anything of value (including tone of voice, etc). I left most of the words alone. I looked at the following words: - simply/simple - easy/easier/easiest - obvious - just - merely - straightforward - ridiculous Thanks to Carlton Gibson for guidance on how to approach this issue, and to Tim Bell for providing the idea. But the enormous lion's share of thanks go to Adam Johnson for his patient and helpful review.
2019-07-29Fixed #30656 -- Added QuerySet.bulk_update() to the database optimization docs.daniel a rios
2019-07-29Refs #30656 -- Reorganized bulk methods in the database optimization docs.daniel a rios
2019-05-22Fixed #30419 -- Favored Meta.indexes over Meta.index_together in ↵Akshesh
optimization docs.
2018-11-15Used auto-numbered lists in documentation.François Freitag
2018-08-18Fixed #29685 -- Added QuerySet.explain() to the database optimization docs.Tom Forbes
2017-11-23Linked to prefetch_related_objects func in DB optimization docs.Luke Plant
2017-05-22Updated various links in docs to avoid redirectsClaude Paroz
Thanks Tim Graham and Mariusz Felisiak for review and completion.
2016-12-27Used a nontemporal example in QuerySet.bulk_create() in docs.Tim Graham
2016-03-31Fixed #26438 -- Fixed multiple .objects typos in the docs.Simon Charette
Thanks Pablo Oubiña for the report.
2016-02-01Fixed #26124 -- Added missing code formatting to docs headers.rowanv
2015-08-08Updated Wikipedia links to use httpsClaude Paroz
2015-08-05Fixed #25213 -- Discouraged use of QuerySet.extra()Tim Graham
Thanks Anssi Kääriäinen for the draft text and Simon Charette for review.
2014-03-03Fixed #21986 -- Added some guidelines for database indexes.Alex de Landgraaf
Thanks django-issues at colons.co for the suggestion.
2013-09-22Reference Meta.index_together in DB performance guide.Ramiro Morales
2013-09-20Fixed #20877 -- added a performance optimization guideevildmp
2013-09-09Fixed #16895 -- Warned about cost of QuerySet orderinge0ne
Thanks outofculture at gmail.com for the suggestion.
2013-09-06Consolidated documentation for F() and Q()evildmp
2013-03-22Added missing markup to docs.Tim Graham
2012-11-02Fixed #15361 - Documented performance considerations for QuerySet.get()Tim Graham
Thanks mmcnickle for the patch.
2012-08-08[py3] Replaced __nonzero__ by __bool__Claude Paroz
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-01-15Updated link to Django Debug Toolbar homepage.Ramiro Morales
Thanks to rowynm AT gmail DOT com for the report and to Claude Paroz for the patch. Fixes #17543. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-09Fixed some comma splices in the 'Insert in bulk' section of db/optimization.txtAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-05Fixed #16937 - added `QuerySet.prefetch_related` to prefetch many related ↵Luke Plant
objects. Many thanks to akaariai for lots of review and feedback, bug finding, additional unit tests and performance testing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-03Added some sphinx cross-reference links to the built-in template tags and ↵Julien Phalip
filters in multiple areas of the documentation. Also fixed a few minor inconsistencies and did a little PEP8 cleanup while I was at it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-30Fixed doc references to `django.db.models.query.QuerySet` and converted some ↵Jannis Leidel
tabs that were introduced in r16699 to spaces. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #7596. Added Model.objects.bulk_create, and make use of it in several ↵Alex Gaynor
places. This provides a performance benefit when inserting multiple objects. THanks to Russ for the review, and Simon Meers for the MySQl implementation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-13Fixed #16014 -- numerous documentation typos -- thanks psmith.Simon Meers
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-31Some small fixes to DB optimization docs.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18Fixes #7817 and #9456.Chris Beaven
- The include tag now has a 'with' option to include to provide extra context vairables to the included template. - The include tag now has an 'only' option to exclude the current context when rendering the included template. - The with tag now accepts multiple variable assignments. - The with, include and blocktrans tags now use a new keyword argument format for variable assignments (e.g. `{% with foo=1 bar=2 %}`). git-svn-id: http://code.djangoproject.com/svn/django/trunk@14922 bcc190cf-cafb-0310-a4f2-bffc1f526a37