Overview
このページでは、Diango MongoDBバックエンドでサポートされている機能とサポートされていない機能に関する情報を見つけることができます。現在、将来のリリースが予定されている機能を見つけることもできます。ユーザーのリクエストに基づいて、これらの今後の機能を優先します。機能のサポートは JIRA 問題を作成する ことでリクエストできます。
パフォーマンス上の制限
Dlango MongoDBバックエンドは次の操作をサポートしていますが、パフォーマンスが低下する可能性があります。
操作 | パフォーマンス ノート |
---|---|
| Queries that use the $expr operator might run slowly, since
this operator often cannot predict which index to use and performs
a collection scan. Some QuerySet operations, such as queries that
specify an in lookup, use $expr to evaluate the query results and
experience degraded performance.We plan to address this performance issue in a
post-GA release. |
| Queries that use the $lookup operator might run slowly.
To improve performance, we recommend that you use embedded
models instead of the $lookup operator when possible.
To learn more about how to reduce $lookup operations, see the Reduce $lookup Operations guide in the MongoDB Atlas
documentation. |
MongoDB の機能
このセクションでは、Diango MongoDBバックエンドがさまざまなMongoDB機能をサポートしているかどうかを示します。
インデックス サポート
MongoDB の機能 | 現在のサポート |
---|---|
Atlas Search インデックス | 部分的にサポートされています。Dlango MongoDBバックエンドを使用して、インデックス名とインデックスを作成するフィールドを指定する基本的な Atlas Search インデックスを作成できます。他のインデックス定義フィールドはすべてサポートされていません。 MongoDB は、一部のデータ型で Atlas Search インデックスをサポートしていません。サポートされていない型のリストを表示するには、 MongoDB Atlasドキュメントのデータ型の制限を参照してください。 |
Atlas ベクトル検索インデックス | |
複合インデックス | ✓ |
埋め込みドキュメントインデックス | ✓ |
地理空間インデックス | ✓ |
Multikey indexes | ✓ |
部分インデックス | ✓ |
単一フィールド インデックス | ✓ |
Unique indexes | ✓ |
モデル作成後の埋め込みモデル インデックスの更新 | サポート対象外 。 |
| ✓ |
| サポート対象外 。 |
データ型のサポート
Dlango MongoDBバックエンドは現在、次の表に含まれていないすべてのMongoDBデータ型をサポートしています。サポートされているタイプの完全なリストを表示するには、 モデルの作成ガイドの「 MongoDB BSONフィールド 」セクションを参照してください。
BSON データ型 | 現在のサポート |
---|---|
| ✓ You can use embedded models and polymorphic embedded models to represent objects.
If you are using the EmbeddedModelField field, the following
limitations apply:
- Foreign key fields are not supported.
- Arbitrary or untyped embedded model fields are not supported. You must
derive all fields from an EmbeddedModel class. |
| サポート対象外 。ただし、GA 以降のリリースでこのタイプをサポートする予定です。 |
クエリ サポート
MongoDB の機能 | 現在のサポート |
---|---|
集計操作 | 部分的にサポートされています 。Dlango MongoDBバックエンドにはMongoDB集計フレームワークのカスタム Dlangoフィールドルックアップは含まれていませんが、 raw_aggregate() メソッドを使用できます。 |
Atlas 検索クエリ | ✓ |
削除操作 | ✓ |
地理空間クエリ | ✓ Use the raw_aggregate() method
to run geospatial queries instead of the GIS QuerySet API. |
挿入操作 | ✓ |
読み取り操作 | ✓ |
アップデート操作 | ✓ |
ベクトル検索クエリ | ✓ |
データベースとコレクションのサポート
MongoDB の機能 | 現在のサポート |
---|---|
非同期サポート | ✓ |
認証 | ✓ |
キャッシュされたデータストレージ | サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
変更ストリーム | サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
クライアント側フィールドレベル暗号化とQueryable Encryption | サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
コレクションのインタラクション | ✓ |
データベース インタラクション | ✓ |
GridFS | サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
1 つのコレクションに複数のモデル | サポート対象外 。 |
ドキュメントの表現 | ✓ Use models to represent MongoDB documents. |
スキーマ検証 | サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
時系列データ | ✓ |
トランザクション | ✓ You can use Django MongoDB Backend's custom transactions API with the
following limitations:
- QuerySet.union() is not supported within a transaction.
- Savepoints, or nested atomic blocks, are not supported. The outermost atomic block starts
a transaction, and any subsequent atomic blocks have no effect.
- Your MongoDB deployment must be a replica set or sharded cluster. |
Diango の機能
このセクションは、Diango MongoDBバックエンドがさまざまな Dlango 機能をサポートしているかどうかを示します。
フィールド サポート
Dlango MongoDBバックエンドは現在、次の表に含まれていないすべての Diango フィールドをサポートしています。サポートされているフィールドの完全なリストを表示するには、モデルの作成ガイドの「Dango フィールド」セクションを参照してください。
Diango フィールド型 | 現在のサポート |
---|---|
| サポート対象外 。 |
| サポート対象外 。 |
| ✓ Microsecond granularity for DateTimeField values is not supported. |
| ✓ DurationField stores milliseconds rather than microseconds. |
| 部分的にサポートされています 。このフィールド型は、次の制限付きで使用できます。
|
| サポート対象外 。 |
| 部分的にサポートされています 。このフィールド型は、次の制限付きで使用できます。
|
クエリ サポート
Django MongoDB Backend currently supports all Django QuerySet
methods not included in the following table. To view the supported methods, see QuerySet API in the Django documentation.
Diango QuerySet の機能 | 現在のサポート |
---|---|
| ✓ You cannot use this method to perform
queries that span multiple collections. |
| サポート対象外 。 |
パターン一致検索 | ✓ You can only use these lookups to query string fields. The pattern-matching lookups are iexact , startswith , istartswith ,
endswith , iendswith , contains , icontains , regex , and
iregex |
| サポート対象外 。 |
| サポート対象外 。ただし、MongoDB の集計パイプライン構文を使用するクエリは |
| ✓ You cannot use this method to perform
queries that span multiple collections. |
データベース関数のサポート
Django MongoDB Backend currently supports all database functions not included in the following table. To view a full list of functions, see Database Functions in the Django documentation.
Dmango 関数 | 現在のサポート |
---|---|
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
| サポート対象外 。 |
|
Contrigger アプリのサポート
Diango の機能 | 現在のサポート |
---|---|
Diango Admin | ✓ |
Diango 認証 | ✓ |
GeoDjango | 部分的にサポートされています 。この Webフレームワークは、次の制限付きでサポートされています。
|
フォーム サポート
Diango MongoDBバックエンドは Diango の形式をサポートしていますが、PolymorphicEmbeddedModelField
と PolymorphicEmbeddedModelArrayField
はフォームに表示されません。
管理コマンドのサポート
Django MongoDB Backend currently supports all management commands not included in the following table. To view a full list of commands, see Available commands in the Django documentation.
Diango コマンド | 現在のサポート |
---|---|
| サポート対象外 。 |
| サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
| サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
| サポート対象外 。ただし、GA 以降のリリースでこの機能のサポートを追加する予定です。 |
移行サポート
Diango の機能 | 現在のサポート |
---|---|
移行コマンドによるインデックスの作成、削除、更新 | 部分的にサポートされています 。埋め込みモデルまたは配列フィールドのインデックスを更新することはできません。 |
サポート対象外 。 | |
| サポート対象外 。 |
埋め込みモデルの移行 | 部分的にサポートされています 。移行コマンドは、埋め込みモデル フィールドまたは |
サードパーティ ライブラリのサポート
ライブラリ | 現在のサポート |
---|---|
Partially Supported. To learn more about the use cases and limitations of this library, see Django filter in the Django MongoDB CLI documentation. | |
Partially Supported. To learn more about the use cases and limitations of this library, see Django rest framework in the Django MongoDB CLI documentation. | |
Partially Supported. To learn more about the use cases and limitations of this library, see Django allauth in the Django MongoDB CLI documentation. | |
Partially Supported. To learn more about the use cases and limitations of this library, see Django debug toolbar in the Django MongoDB CLI documentation. |