per page, with , order by , clip by
Results of 1 - 9 of about 9 for batch (0.006 sec.)
QuerySet API リファレンス 12420
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... f fields when they are accessed, such as for foreign keys and deferred fields. For example, to use the FETCH_PEERS mode to batch-load all related objects on first access: from django.db import models books = Book . objects . fetch_mode ( models . FETC ... () prefetch_related ( * lookups ) Returns a QuerySet that will automatically retrieve the given lookups, each in one extra batch query. Prefetching is a way to optimize database access when you know you'll be accessing related objects later, so you ca ... る必要があるが、そのキーが既にデータベースに存在する場合、 IntegrityError が発生します。 bulk_create() bulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = None , unique_fields = None ) abulk_cr ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
Fetch modes 11953
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 is based on the assumption that if you need a field for one instance, you probably need it for all instances in the same batch, since you'll likely process them all identically. Using FETCH_PEERS for the above example would use: 1 query to fetch boo ... ks 1 query to fetch all missing author fields for the batch of books …for a total of 2 queries. The batch query makes this mode a lot more efficient than FETCH_ONE and is similar to ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
CSVを出力する 8807
CSVを出力する このドキュメントでは、Django のビューを使って動的に CSV (Comma Separated Values) を出力する方法を説明しています。そのためには、Python のCSV ライブラリか Django のテンプレートシステムを使います。 Python の CSV ライブラリを使う ... e, we make full use 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 iter ... tools import batched from django.http import StreamingHttpResponse class Echo : """An object that implements just the write method of the fil ... idx ), str ( idx )] for idx in range ( 65536 )) pseudo_buffer = Echo () writer = csv . writer ( pseudo_buffer ) def stream_batched_rows (): for batch in batched ( rows , 100 ): yield "" . join ( writer . writerow ( row ) for row in batch ) return Stre ...
https://man.mtool.work/django/6.1/howto/outputting-csv.html
Django 1.4.2 リリースノート 8574
Django 1.4.2 リリースノート October 17, 2012 This is the second security release in the Django 1.4 series. Host header poisoning Some parts of Django -- independent of end-user-written applications -- make use of full URLs, including domain ... verbose_name and name. Other bugfixes and changes Subclass HTMLParser only for appropriate Python versions (#18239). Added batch_size argument to qs.bulk_create() (#17788). Fixed a small regression in the admin filters where wrongly formatted dates pa ...
https://man.mtool.work/django/6.1/releases/1.4.2.html
Django 1.10.3 リリースノート 8358
Django 1.10.3 リリースノート November 1, 2016 Django 1.10.3 fixes two security issues and several bugs in 1.10.2. User with hardcoded password created when running tests on Oracle When running tests with an Oracle database, Django creates a ... it was ignored ( #27374 ). Fixed QuerySet.bulk_create() on PostgreSQL when the number of objects is a multiple plus one of batch_size ( #27385 ). Prevented i18n_patterns() from using too much of the URL as the language to fix a use case for prefix_def ...
https://man.mtool.work/django/6.1/releases/1.10.3.html
Django 1.5 リリースノート 8358
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 ... t of signals. In the admin, you can now filter users by groups which they are members of. QuerySet.bulk_create() now has a batch_size argument. By default the batch_size is unlimited except for SQLite where single batch is limited so that 999 paramete ...
https://man.mtool.work/django/6.1/releases/1.5.html
Django 6.1.2 release notes 7909
Django 6.1.2 release notes October 6, 2026 Django 6.1.2 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.1. It also fixes one data ... on pages when setting delete_confirmation_max_display to 0 ( #37386 ). Fixed a bug in Django 6.1 where FETCH_PEERS did not batch instances loaded by select_related() , causing unnecessary queries ( #37344 ). Fixed a bug in Django 6.1 where permissions ...
https://man.mtool.work/django/6.1/releases/6.1.2.html
Django 1.4 リリースノート 7441
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! 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.3 or older versions. We've a ... support , the ability to bulk insert large datasets for improved performance, and QuerySet.prefetch_related , a method to batch-load related objects in areas where select_related() doesn't work. Some nice security additions, including improved passwo ... dded to QuerySet . This method returns a new QuerySet that will prefetch each of the specified related lookups in a single batch as soon as the query begins to be evaluated. Unlike select_related , it does the joins in Python, not in the database, and ...
https://man.mtool.work/django/6.1/releases/1.4.html
サイトマップ・フレームワーク 6992
サイトマップ・フレームワーク Djangoには、 sitemap XML ファイルを作成するための高レベルなサイトマップ生成フレームワークが付属しています。 概要 サイトマップとは、検索エンジンのインデクサーに、ページの変更頻度や、あるページがサイト内の他のペー ... 信を防ぎます。 paginator [ソース] オプション。 This property returns a Paginator for items() . If you generate sitemaps in a batch you may want to override this as a cached property in order to avoid multiple items() calls. changefreq オプション。 メソッ ...
https://man.mtool.work/django/6.1/ref/contrib/sitemaps.html
PREV 1 NEXT