forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiargs-dbcommand-compact-field.yaml
74 lines (69 loc) · 1.88 KB
/
apiargs-dbcommand-compact-field.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
arg_name: field
description: |
The name of the collection.
interface: dbcommand
name: compact
operation: compact
optional: false
position: 1
type: string
---
arg_name: field
description: |
If ``true``, :dbcommand:`compact` can run on the
:term:`primary` in a :term:`replica set`. If ``false``,
:dbcommand:`compact` returns an error when run on a
primary, because the command blocks all other operations.
:dbcommand:`compact` blocks operations only for the database
it is compacting.
interface: dbcommand
name: force
operation: compact
optional: true
position: 2
type: boolean
---
arg_name: field
description: |
*Applicable for the MMAPv1 storage engine only.* Specifies the
padding to use (as a factor of the document size) during the
:dbcommand:`compact` operation.
The ``paddingFactor`` does not affect
the padding of subsequent record allocations after
:dbcommand:`compact` completes. For more information, see
:ref:`compact-paddingFactor`.
interface: dbcommand
name: paddingFactor
operation: compact
optional: true
position: 3
type: number
---
arg_name: field
description: |
*Applicable for the MMAPv1 storage engine only.* Specifies the
padding to use (in absolute number of bytes) during the
:dbcommand:`compact` operation.
``paddingBytes`` does not affect
the padding of subsequent record allocations after
:dbcommand:`compact` completes. For more information, see
:ref:`compact-paddingBytes`.
interface: dbcommand
name: paddingBytes
operation: compact
optional: true
position: 4
type: integer
---
arg_name: field
description: |
*Applicable for the MMAPv1 storage engine only.* Specifies that the
:dbcommand:`compact` process should leave document :term:`padding` intact.
This option cannot be used with ``paddingFactor`` or ``paddingBytes``.
.. versionadded:: 2.6
interface: dbcommand
name: preservePadding
operation: compact
optional: true
type: boolean
...