Skip to content

Commit 02f2df5

Browse files
committed
DOCSP-45205 Multikey Indexes
1 parent bffd7d5 commit 02f2df5

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed

source/indexes.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.. _ruby-indexes:
2+
3+
=================================
4+
Optimize Queries by Using Indexes
5+
=================================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:description: Learn how to use indexes by using the MongoDB Scala Driver.
19+
:keywords: query, optimization, efficiency, usage example, code example
20+
21+
.. toctree::
22+
:titlesonly:
23+
:maxdepth: 1
24+
25+
Single Field </indexes/single-field-index>
26+
Multikey </indexes/multikey-index>
27+
.. Compound </indexes/compound-index>
28+
.. Atlas Search </indexes/atlas-search-index>
29+
30+
31+
Overview
32+
--------
33+
34+
On this page, you can see copyable code examples that show how to manage
35+
different types of indexes by using the {+driver-long+}.
36+
37+
.. TODO

source/indexes/multikey-index.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.. _ruby-multikey-index:
2+
3+
================
4+
Multikey Indexes
5+
================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:keywords: index, query, optimization, efficiency
19+
20+
Overview
21+
--------
22+
23+
**Multikey indexes** are indexes that improve the performance of queries
24+
on array-valued fields. You can create a multikey index on a collection
25+
by using the ``create_one`` method and the same syntax that you use to create
26+
a :ref:`single field index <ruby-single-field-index>`.
27+

source/indexes/single-field-index.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. _ruby-single-field-index:
2+
3+
====================
4+
Single Field Indexes
5+
====================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:keywords: index, query, optimization, efficiency
19+
20+
Overview
21+
--------
22+
23+
.. TODO

0 commit comments

Comments
 (0)