Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions modules/n1ql/pages/n1ql-language-reference/createindex.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ Indicates that the index key is a vector field.
[[index-partition]]
=== PARTITION BY HASH Clause

[.edition]#{enterprise}#

Used to partition the index.
Index partitioning helps increase the query performance by dividing and spreading a large index of documents across multiple nodes, horizontally scaling out an index as needed.
For details, see {index-partitioning}[Index Partitioning].
Expand Down
16 changes: 16 additions & 0 deletions modules/n1ql/pages/n1ql-language-reference/createprimaryindex.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Primary indexes contain a full set of keys in a given keyspace.
:logical-hierarchy: xref:n1ql-intro/queriesandresults.adoc#logical-hierarchy
:querying-indexes: xref:n1ql-intro/sysinfo.adoc#querying-indexes
:index-replication: xref:indexes:index-replication.adoc#index-replication
:index-partitioning: xref:n1ql-language-reference/index-partitioning.adoc
:query-settings: xref:manage:manage-settings/query-settings.adoc

// TEMP
Expand Down Expand Up @@ -72,6 +73,9 @@ When querying, if the index name contains a `#` or `_` character, you
keyspace-ref:: [Required] Specifies the keyspace where the index is created.
See <<keyspace-ref>>.

index-partition:: (Optional) Specifies index partitions.
See <<index-partition>>.

index-using:: (Optional) Specifies the index type.
See <<index-using>>.

Expand Down Expand Up @@ -161,6 +165,15 @@ collection::
For example, `airline` indicates the `airline` collection, assuming the query context is set.
====

[[index-partition]]
=== PARTITION BY HASH Clause

[.edition]#{enterprise}#

Used to partition the index.
Index partitioning helps increase the query performance by dividing and spreading a large index of documents across multiple nodes, horizontally scaling out an index as needed.
For more information, see {index-partitioning}[Index Partitioning].

[[index-using]]
=== USING Clause

Expand Down Expand Up @@ -253,6 +266,9 @@ If the value of this property is not less than the number of index nodes in the
|Integer
|===

Partitioned indexes support further options.
See {index-partitioning}[].

== Usage

// Nothing
Expand Down
Loading
Loading