per page, with , order by , clip by
Results of 1 - 10 of about 40 for atomic (0.004 sec.)
データベースのトランザクション — Django 6.1 ドキュメント 14416
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのトランザクション ¶ Django では、データベースのトランザクションをコントロールする方法が提供されています。 データベースのトランザクション ... ョンを扱う一般的な方法は、各リクエストをトランザクションでラップすることです。この動作を有効化したい各データベースの設定で、 ATOMIC_REQUESTS を True にセットしてください。 これは、次のように動作します。まず、ビュー関数を呼び出す前に、Django はトランザクシ ... ンをコミットします。もしビューが例外を生成した場合は、Django はトランザクションをロールバックします。 ビューのコード (通常は atomic() コンテキストマネージャー) の中で、セーブポイントを使ったサブトランザクションを扱うことができます。ただし、ビューの最後で ... ポンスを送信開始した後にエラーを扱う適切な方法が存在しないからです。 実際には、この機能はすべてのビュー関数を以下で説明する atomic() デコレータでラップします。 あなたのビューの実行だけがトランザクションで閉じられることに注意してください。ミドルウェアはト ...
https://man.mtool.work/django/6.1/topics/db/transactions.html
データベースのトランザクション — Django 6.1 ドキュメント 14416
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのトランザクション ¶ Django では、データベースのトランザクションをコントロールする方法が提供されています。 データベースのトランザクション ... ョンを扱う一般的な方法は、各リクエストをトランザクションでラップすることです。この動作を有効化したい各データベースの設定で、 ATOMIC_REQUESTS を True にセットしてください。 これは、次のように動作します。まず、ビュー関数を呼び出す前に、Django はトランザクシ ... ンをコミットします。もしビューが例外を生成した場合は、Django はトランザクションをロールバックします。 ビューのコード (通常は atomic() コンテキストマネージャー) の中で、セーブポイントを使ったサブトランザクションを扱うことができます。ただし、ビューの最後で ... ポンスを送信開始した後にエラーを扱う適切な方法が存在しないからです。 実際には、この機能はすべてのビュー関数を以下で説明する atomic() デコレータでラップします。 あなたのビューの実行だけがトランザクションで閉じられることに注意してください。ミドルウェアはト ...
https://man.mtool.work/django/6.1/topics/db/transactions.html
データベースのマイグレーションの作成方法 — Django 6.1 ドキュメント 8924
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのマイグレーションの作成方法 ¶ このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成 ... では、マイグレーションはデフォルトでトランザクション内で実行されます。大きなテーブルに対してデータ移行を行う場合などには、 atomic 属性を False に設定することで、トランザクション内で移行が実行されないようにすることができます: from django.db import migra ... tions class Migration ( migrations . Migration ): atomic = False Within such a migration, all operations are run without a transaction. It's possible to execute parts of the migra ... tion inside a transaction using atomic() or by passing atomic=True to RunPython . 以下は、大きなテーブルを小さなバッチで更新する、非アトミックなデータマイグレーシ ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
データベースのマイグレーションの作成方法 — Django 6.1 ドキュメント 8706
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのマイグレーションの作成方法 ¶ このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成 ... では、マイグレーションはデフォルトでトランザクション内で実行されます。大きなテーブルに対してデータ移行を行う場合などには、 atomic 属性を False に設定することで、トランザクション内で移行が実行されないようにすることができます: from django.db import migra ... tions class Migration ( migrations . Migration ): atomic = False Within such a migration, all operations are run without a transaction. It's possible to execute parts of the migra ... tion inside a transaction using atomic() or by passing atomic=True to RunPython . 以下は、大きなテーブルを小さなバッチで更新する、非アトミックなデータマイグレーシ ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
PostgreSQL 固有のデータベース関数 — Django 6.1 ドキュメント 7645
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース関数 ¶ これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID ¶ class RandomUUI ... ango.db.models.functions.Now を補完するもので、現在のステートメントの日時を返します。 Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls create savepoints which do ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
PostgreSQL 固有のデータベース関数 — Django 6.1 ドキュメント 7582
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース関数 ¶ これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID ¶ class RandomUUI ... ango.db.models.functions.Now を補完するもので、現在のステートメントの日時を返します。 Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls create savepoints which do ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
Django 3.2 リリースノート — Django 6.1 ドキュメント 7582
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2 リリースノート ¶ April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレー ... ns now allow using transforms. See 式はトランスフォーム(Transform)を参照できる for details. The new durable argument for atomic() guarantees that changes made in the atomic block will be committed if the block exits without errors. A nested atomic bl ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django's Tasks framework — Django 6.1 ドキュメント 7582
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... der this simplified example: @task def my_task ( thing_num ): Thing . objects . get ( num = thing_num ) with transaction . atomic (): Thing . objects . create ( num = 1 ) my_task . enqueue ( thing_num = 1 ) To prevent the scenario where my_task runs be ... to enqueue() via functools.partial() : from functools import partial from django.db import transaction with transaction . atomic (): Thing . objects . create ( num = 1 ) transaction . on_commit ( partial ( my_task . enqueue , thing_num = 1 )) Task res ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django 3.2 リリースノート — Django 6.1 ドキュメント 7582
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2 リリースノート ¶ April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレー ... ns now allow using transforms. See 式はトランスフォーム(Transform)を参照できる for details. The new durable argument for atomic() guarantees that changes made in the atomic block will be committed if the block exits without errors. A nested atomic bl ...
https://man.mtool.work/django/6.1/releases/3.2.html
Django's Tasks framework — Django 6.1 ドキュメント 7582
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... der this simplified example: @task def my_task ( thing_num ): Thing . objects . get ( num = thing_num ) with transaction . atomic (): Thing . objects . create ( num = 1 ) my_task . enqueue ( thing_num = 1 ) To prevent the scenario where my_task runs be ... to enqueue() via functools.partial() : from functools import partial from django.db import transaction with transaction . atomic (): Thing . objects . create ( num = 1 ) transaction . on_commit ( partial ( my_task . enqueue , thing_num = 1 )) Task res ...
https://man.mtool.work/django/6.1/topics/tasks.html
PREV 1 2 3 4 NEXT