per page, with , order by , clip by
Results of 1 - 10 of about 16 for rank (0.007 sec.)
全文検索 — Django 6.1 ドキュメント 12909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 全文検索 ¶ django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの ... 説明については、 検索設定を変更する を参照してください。 Changed in Django 6.0: Lexeme オブジェクトが追加されました。 SearchRank ¶ class SearchRank ( vector , query , weights = None , normalization = None , cover_density = False ) [ソース] ¶ これまでに ... いほど、ランクの値が高くなります。関連度で並び替えるには: >>> from django.contrib.postgres.search import SearchQuery , SearchRank , SearchVector >>> vector = SearchVector ( "body_text" ) >>> query = SearchQuery ( "cheese" ) >>> Entry . objects . annota ... te ( rank = SearchRank ( vector , query )) . order_by ( "-rank" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza recipes ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
全文検索 — Django 6.1 ドキュメント 12909
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 全文検索 ¶ django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの ... 説明については、 検索設定を変更する を参照してください。 Changed in Django 6.0: Lexeme オブジェクトが追加されました。 SearchRank ¶ class SearchRank ( vector , query , weights = None , normalization = None , cover_density = False ) [ソース] ¶ これまでに ... いほど、ランクの値が高くなります。関連度で並び替えるには: >>> from django.contrib.postgres.search import SearchQuery , SearchRank , SearchVector >>> vector = SearchVector ( "body_text" ) >>> query = SearchQuery ( "cheese" ) >>> Entry . objects . annota ... te ( rank = SearchRank ( vector , query )) . order_by ( "-rank" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza recipes ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
PostgreSQL 固有の集計関数 — Django 6.1 ドキュメント 9340
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有の集計関数 ¶ これらの機能は、 django.contrib.postgres.aggregates モジュールから利用可能です。これらについての詳細は、 PostgreSQLドキュ ... e を返します。 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolAnd > ... regate ( booland = BoolAnd ( "published" )) {'booland': False} >>> Comment . objects . aggregate ( booland = BoolAnd ( Q ( rank__lt = 100 ))) {'booland': True} BoolOr ¶ class BoolOr ( expression , filter = None , default = None , ** extra ) ¶ 少なくと ... e を返します。 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolOr >> ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/aggregates.html
PostgreSQL 固有の集計関数 — Django 6.1 ドキュメント 9340
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有の集計関数 ¶ これらの機能は、 django.contrib.postgres.aggregates モジュールから利用可能です。これらについての詳細は、 PostgreSQLドキュ ... e を返します。 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolAnd > ... regate ( booland = BoolAnd ( "published" )) {'booland': False} >>> Comment . objects . aggregate ( booland = BoolAnd ( Q ( rank__lt = 100 ))) {'booland': True} BoolOr ¶ class BoolOr ( expression , filter = None , default = None , ** extra ) ¶ 少なくと ... e を返します。 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolOr >> ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/aggregates.html
Django 4.2 リリースノート — Django 6.1 ドキュメント 8577
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.2 リリースノート ¶ 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレー ... on. 既存の index_together のマイグレーションはマイグレーションとして扱うべきです。例えば: class Author ( models . Model ): rank = models . IntegerField () name = models . CharField ( max_length = 30 ) class Meta : index_together = [[ "rank" , "name" ... ]] これは以下のようにすべきです: class Author ( models . Model ): rank = models . IntegerField () name = models . CharField ( max_length = 30 ) class Meta : indexes = [ models . Index ( fields ... = [ "rank" , "name" ])] makemigrations コマンドを実行すると、既存のインデックスをリネームする RenameIndex 操作が含まれるマイグレーシ ...
https://man.mtool.work/django/6.1/releases/4.2.html
Django 4.2 リリースノート — Django 6.1 ドキュメント 8577
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.2 リリースノート ¶ 2023年4月3日 Django 4.2 へようこそ! このリリースノートでは、 バージョン 4.2 の新機能 と、Django 4.1 以前からアップグレー ... on. 既存の index_together のマイグレーションはマイグレーションとして扱うべきです。例えば: class Author ( models . Model ): rank = models . IntegerField () name = models . CharField ( max_length = 30 ) class Meta : index_together = [[ "rank" , "name" ... ]] これは以下のようにすべきです: class Author ( models . Model ): rank = models . IntegerField () name = models . CharField ( max_length = 30 ) class Meta : indexes = [ models . Index ( fields ... = [ "rank" , "name" ])] makemigrations コマンドを実行すると、既存のインデックスをリネームする RenameIndex 操作が含まれるマイグレーシ ...
https://man.mtool.work/django/6.1/releases/4.2.html
データベース関数 — Django 6.1 ドキュメント 8317
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベース関数 ¶ The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggrega ... 積分布を計算します。累積分布は、現在の行の前の行または前の行の数をフレーム内の行の総数で割ったものとして定義されます。 DenseRank ¶ class DenseRank ( * expressions , ** extra ) [ソース] ¶ Rank と等価ですが、ギャップを持ちません。 FirstValue ¶ class Fir ... り均等に番号を割り振ります。行がいくつかのバケットに均等に分割されない場合、1つ以上のバケットがより頻繁に表されます。 PercentRank ¶ class PercentRank ( * expressions , ** extra ) [ソース] ¶ フレーム句の行の相対順位を計算します。この計算は評価と等価です ... : (rank - 1) / (total rows - 1) 以下の表は、行の相対順位の計算について説明したものです: 行 No. 値 順位 計算 相対順位 1 15 1 (1-1)/ ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
データベース関数 — Django 6.1 ドキュメント 8317
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベース関数 ¶ The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggrega ... 積分布を計算します。累積分布は、現在の行の前の行または前の行の数をフレーム内の行の総数で割ったものとして定義されます。 DenseRank ¶ class DenseRank ( * expressions , ** extra ) [ソース] ¶ Rank と等価ですが、ギャップを持ちません。 FirstValue ¶ class Fir ... り均等に番号を割り振ります。行がいくつかのバケットに均等に分割されない場合、1つ以上のバケットがより頻繁に表されます。 PercentRank ¶ class PercentRank ( * expressions , ** extra ) [ソース] ¶ フレーム句の行の相対順位を計算します。この計算は評価と等価です ... : (rank - 1) / (total rows - 1) 以下の表は、行の相対順位の計算について説明したものです: 行 No. 値 順位 計算 相対順位 1 15 1 (1-1)/ ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
クエリ式 (Query Expression) — Django 6.1 ドキュメント 7815
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... 用すると、通常はグループから除外されるはずの行が含まれる可能性があります: >>> qs = Movie . objects . annotate ( ... category_rank = Window ( Rank (), partition_by = "category" , order_by = "-rating" ), ... scenes_count = Count ( "actors" ), ... ) . fil ... ter ( Q ( category_rank__lte = 3 ) | Q ( title__contains = "Batman" )) >>> list ( qs ) NotImplementedError: Heterogeneous disjunctive predicates a ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
クエリ式 (Query Expression) — Django 6.1 ドキュメント 7815
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリ式 (Query Expression) ¶ クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値ま ... 用すると、通常はグループから除外されるはずの行が含まれる可能性があります: >>> qs = Movie . objects . annotate ( ... category_rank = Window ( Rank (), partition_by = "category" , order_by = "-rating" ), ... scenes_count = Count ( "actors" ), ... ) . fil ... ter ( Q ( category_rank__lte = 3 ) | Q ( title__contains = "Batman" )) >>> list ( qs ) NotImplementedError: Heterogeneous disjunctive predicates a ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
PREV 1 2 NEXT