summaryrefslogtreecommitdiff
path: root/docs/topics/db/optimization.txt
AgeCommit message (Collapse)Author
2021-01-27[3.2.x] Changed "Don't overuse count() or exists()" example to Python.Adam Johnson
Backport of 8a642b88c31787fde612ba72d4b282e1c2444035 from master
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
2010-11-24Fixed #14767 -- Reflowed paragraphs and cleaned up some markup/links in the ↵Gabriel Hurley
topics/db/optimizations docs. Thanks to adamv for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-20Fixed #14727 -- Corrected three minor issues in the docs. Thanks to OldTroll ↵Gabriel Hurley
for the report and the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09Fixed #11509 -- Modified usage of "Web" to match our style guide in various ↵Russell Keith-Magee
documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13The optimization docs were a little too enthusiastic in recommendingMalcolm Tredinnick
defer() and only() usage. Disk access patterns affect when this is a good idea, so this patch adds a note about the trade-offs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-19Fixed #14141: docs now use the :doc: construct for links between documents.Jacob Kaplan-Moss
Thanks, Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-07Fixed #11800 -- Updated Sphinx metadata in queryset docs. Thanks to timo for ↵Russell Keith-Magee
the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-07-05Small corrections/improvements to DB optimization docs.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13419 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-16Created a 'DB optimization' topic, with cross-refs to relevant sections.Luke Plant
Also fixed #10291, which was related, and cleaned up some inconsistent doc labels. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12229 bcc190cf-cafb-0310-a4f2-bffc1f526a37