... nyField ( Topping ) この例では、以下のメソッドは topping.pizza_set と pizza.toppings の両方で利用できます。 add ( * objs , bulk = True , through_defaults = None ) ¶ aadd ( * objs , bulk = True , through_defaults = None ) ¶ 非同期バージョン : aadd() リ ... リレーションの場合、 QuerySet.update() を使って更新を行います。これにはオブジェクトが既に保存されている必要があります。 引数 bulk=False を使用することで、関係マネージャが e.save() を呼び出して更新を行うことができます。 しかし、多対多のリレーションシップ ... で add() を使用すると、 save() メソッドは呼び出しません ( bulk 引数は存在しません)。 QuerySet.bulk_create() を使用してリレーションシップを作成します。リレーションシップの作成時にカスタム ... ... nyField ( Topping ) この例では、以下のメソッドは topping.pizza_set と pizza.toppings の両方で利用できます。 add ( * objs , bulk = True , through_defaults = None ) ¶ aadd ( * objs , bulk = True , through_defaults = None ) ¶ 非同期バージョン : aadd() リ ... リレーションの場合、 QuerySet.update() を使って更新を行います。これにはオブジェクトが既に保存されている必要があります。 引数 bulk=False を使用することで、関係マネージャが e.save() を呼び出して更新を行うことができます。 しかし、多対多のリレーションシップ ... で add() を使用すると、 save() メソッドは呼び出しません ( bulk 引数は存在しません)。 QuerySet.bulk_create() を使用してリレーションシップを作成します。リレーションシップの作成時にカスタム ... ... ciency. Use the FETCH_PEERS fetch mode ¶ Use the FETCH_PEERS fetch mode to make on-demand field access more efficient with bulk-fetching. Enable it for all usage of your models with a custom manager . Using this fetch mode is easier than declaring fi ... クスを追加すると、並べ替えのパフォーマンスが向上する可能性があります。 一括メソッドを使用する ¶ SQL文の数を減らすために一括(bulk)メソッドを使用する 一括で作成する ¶ When creating objects, where possible, use the bulk_create() method to reduce the numb ... er of SQL queries. For example: Entry . objects . bulk_create ( [ Entry ( headline = "This is a test" ), Entry ( headline = "This is only a test" ), ] ) ...これは下記よりも適切で ... ... ciency. Use the FETCH_PEERS fetch mode ¶ Use the FETCH_PEERS fetch mode to make on-demand field access more efficient with bulk-fetching. Enable it for all usage of your models with a custom manager . Using this fetch mode is easier than declaring fi ... クスを追加すると、並べ替えのパフォーマンスが向上する可能性があります。 一括メソッドを使用する ¶ SQL文の数を減らすために一括(bulk)メソッドを使用する 一括で作成する ¶ When creating objects, where possible, use the bulk_create() method to reduce the numb ... er of SQL queries. For example: Entry . objects . bulk_create ( [ Entry ( headline = "This is a test" ), Entry ( headline = "This is only a test" ), ] ) ...これは下記よりも適切で ... ... .0. バグ修正 ¶ Fixed a bug in Django 5.2 where data exceeding max_length was silently truncated by QuerySet.bulk_create() on PostgreSQL ( #33647 ). Fixed a regression in Django 6.0 where querystring mishandled multi-value QueryDict key ... 3.14) ignored the --no-color option and the DJANGO_COLORS setting ( #36376 ). Fixed a regression in Django 6.0 that caused bulk_create() to crash when introspecting the connection on SQLite ( #36818 ). Fixed a visual regression in Django 6.0 for admi ... 前のトピックへ Django 6.0.2 release notes 次のトピックへ Django 6.0 release notes 関連キーワード Fixed regression introduced bulk create values caused crash fieldset release notes January fixes loss well several bugs バグ 修正 exceeding length silently ... ... .0. バグ修正 ¶ Fixed a bug in Django 5.2 where data exceeding max_length was silently truncated by QuerySet.bulk_create() on PostgreSQL ( #33647 ). Fixed a regression in Django 6.0 where querystring mishandled multi-value QueryDict key ... 3.14) ignored the --no-color option and the DJANGO_COLORS setting ( #36376 ). Fixed a regression in Django 6.0 that caused bulk_create() to crash when introspecting the connection on SQLite ( #36818 ). Fixed a visual regression in Django 6.0 for admi ... ngo 6.0.2 release notes 次のトピックへ Django 6.0 release notes 関連キーワード Django Fixed regression bug data introduced bulk create value values name caused crash fieldset release notes January fixes one loss 関連するページ Django 6.1.3 release no ... ... した際にクラッシュするバグが修正されました ( #34139 )。 Django 4.1 で、 unique_fields に "pk" が含まれている場合に QuerySet.bulk_create() がクラッシュするバグが修正されました ( #34177 )。 Django 4.1 で、 db_column が設定されたフィールドに対して QueryS ... et.bulk_create() を使用するとクラッシュするバグが修正されました ( #34171 )。 目次 Django 4.1.4 リリースノート バグ修正 前のトピック ... Django 4.1.5 リリースノート 次のトピックへ Django 4.1.3 リリースノート 関連キーワード 修正 バグ クラッシュ create QuerySet bulk リリースノート SQLite ManyToManyField テーブル 構築 リグレッション Sitemap items lastmod サイトマップインデックスビュー 関 ... ... を使用していて、オブジェクトを作成する必要があるが、そのキーが既にデータベースに存在する場合、 IntegrityError が発生します。 bulk_create() ¶ bulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = ... None , unique_fields = None ) ¶ abulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = None , unique_fi ... elds = None ) ¶ 非同期バージョン : abulk_create() このメソッドは、指定されたオブジェクトのリストを効率的な方法でデータベースに挿入し (通常、オブジェクトの数にかかわ ... ... した際にクラッシュするバグが修正されました ( #34139 )。 Django 4.1 で、 unique_fields に "pk" が含まれている場合に QuerySet.bulk_create() がクラッシュするバグが修正されました ( #34177 )。 Django 4.1 で、 db_column が設定されたフィールドに対して QueryS ... et.bulk_create() を使用するとクラッシュするバグが修正されました ( #34171 )。 目次 Django 4.1.4 リリースノート バグ修正 前のトピック ... リリースノート 次のトピックへ Django 4.1.3 リリースノート 関連キーワード Django 修正 バグ クラッシュ create 場合 QuerySet bulk リリースノート いくつ SQLite ManyToManyField テーブル 構築 発生 リグレッション Sitemap items オブジェクト lastmod 関連する ... ... を使用していて、オブジェクトを作成する必要があるが、そのキーが既にデータベースに存在する場合、 IntegrityError が発生します。 bulk_create() ¶ bulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = ... None , unique_fields = None ) ¶ abulk_create ( objs , batch_size = None , ignore_conflicts = False , update_conflicts = False , update_fields = None , unique_fi ... elds = None ) ¶ 非同期バージョン : abulk_create() このメソッドは、指定されたオブジェクトのリストを効率的な方法でデータベースに挿入し (通常、オブジェクトの数にかかわ ... 2026年10月08日