per page, with , order by , clip by
Results of 1 - 10 of about 15 for reduce (0.003 sec.)
Django 1.11.4 リリースノート 12609
Django 1.11.4 リリースノート August 1, 2017 Django 1.11.4 fixes several bugs in 1.11.3. バグ修正 Fixed a regression in 1.11.3 on Python 2 where non-ASCII format values for date/time widgets results in an empty value in the widget's HTML ( # ... EmptyResultSet ( #28378 ). Fixed a regression in pickling of LazyObject on Python 2 when the wrapped object doesn't have __reduce__() ( #28389 ). Fixed crash in runserver 's autoreload with Python 2 on Windows with non- str environment variables ( #281 ...
https://man.mtool.work/django/6.1/releases/1.11.4.html
データベースアクセスの最適化 11511
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... すために一括(bulk)メソッドを使用する 一括で作成する When creating objects, where possible, use the bulk_create() method to reduce the number of SQL queries. For example: Entry . objects . bulk_create ( [ Entry ( headline = "This is a test" ), Entry ( h ... it's appropriate for your use case. 一括で更新する When updating objects, where possible, use the bulk_update() method to reduce the number of SQL queries. Given a list or queryset of objects: entries = Entry . objects . bulk_create ( [ Entry ( headli ... g different pairs of objects into ManyToManyField or when the custom through table is defined, use bulk_create() method to reduce the number of SQL queries. For example: PizzaToppingRelationship = Pizza . toppings . through PizzaToppingRelationship . o ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
Django 3.1.1 リリースノート 10954
Django 3.1.1 リリースノート September 1, 2020 Django 3.1.1 fixes two security issues and several bugs in 3.1. CVE-2020-24583: Incorrect permissions on intermediate-level directories on Python 3.7+ On Python 3.7+, FILE_UPLOAD_DIRECTORY_PERMI ... upgrading multiple instances of the same project to Django 3.1 ( #31864 ). Adjusted admin's navigation sidebar template to reduce debug logging when rendering ( #31865 ). Fixed a data loss possibility in the select_for_update() . When using related fie ...
https://man.mtool.work/django/6.1/releases/3.1.1.html
Fetch modes 10414
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... E and is similar to an on-demand call to QuerySet.prefetch_related() or prefetch_related_objects() . Using FETCH_PEERS can reduce most cases of the "N+1 queries problem" to two queries without much effort. The "peer" instances are tracked in a list of ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
CSVを出力する 8777
CSVを出力する このドキュメントでは、Django のビューを使って動的に CSV (Comma Separated Values) を出力する方法を説明しています。そのためには、Python のCSV ライブラリか Django のテンプレートシステムを使います。 Python の CSV ライブラリを使う ... of Python generators to efficiently handle the assembly and transmission of a large CSV file. Rows are batched together to reduce HTTP overhead and improve compression efficiency when used with GZipMiddleware : import csv from itertools import batched ...
https://man.mtool.work/django/6.1/howto/outputting-csv.html
Coding style 8220
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... checking for these issues before code review it allows the reviewer to focus on the change itself, and it can also help to reduce the number of CI runs. To use the tool, first install pre-commit and then the git hooks: /  $ python -m pip install pre ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.8 リリースノート 8220
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... d objects such as add() or direct assignment ran multiple data modifying queries without wrapping them in transactions. To reduce the risk of data corruption, all data modifying methods that affect multiple related objects (i.e. add() , remove() , clea ... jango would magically import myapp.views.myview internally and turn the string into a real function reference. In order to reduce repetition when referencing many views from the same module, the patterns() function takes a required initial prefix argum ...
https://man.mtool.work/django/6.1/releases/1.8.html
シグナル 8220
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... ar to the case for middleware , there is a small performance cost to adapting receivers in this way. Note that in order to reduce the number of sync/async calling-style switches within a send() or asend() call, the receivers are grouped by whether or n ...
https://man.mtool.work/django/6.1/topics/signals.html
Django 1.5 リリースノート 7680
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... LOGIN_URL and LOGIN_REDIRECT_URL settings now also accept view function names and named URL patterns . This allows you to reduce configuration duplication. More information can be found in the login_required() documentation. Django now provides a mod_ ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 4.1 リリースノート 7680
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ansforms. The new CONN_HEALTH_CHECKS setting allows enabling health checks for persistent database connections in order to reduce the number of failed requests, e.g. after database server restart. QuerySet.bulk_create() now supports updating fields whe ...
https://man.mtool.work/django/6.1/releases/4.1.html
PREV 1 2 NEXT