Skip to content

Commit 7fbd5b1

Browse files
committed
Issue#106:Update
1 parent b328e81 commit 7fbd5b1

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

locale/zh/LC_MESSAGES/tutorial/expire-data.po

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgstr ""
44
"Project-Id-Version: mongodb-manual 2.6\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2014-09-03 15:39-0400\n"
7-
"PO-Revision-Date: 2015-02-03 00:28+0800\n"
7+
"PO-Revision-Date: 2015-02-03 22:55+0800\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=UTF-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -68,8 +68,8 @@ msgid ""
6868
"A document will not expire if the indexed field is not a date :term:`BSON "
6969
"type <BSON types>` or an array of date :term:`BSON types <BSON types>`."
7070
msgstr ""
71-
"如果被索引的字段不是日期 :term:`BSON type <BSON types>` 或者是日期数组 :"
72-
"term:`BSON types <BSON types>`,文档不会过期。"
71+
"如果被索引的字段不是日期 :term:`BSON type <BSON types>` 或是日期数组 :term:"
72+
"`BSON types <BSON types>`,文档不会过期。"
7373

7474
#: ../source/tutorial/expire-data.txt:39
7575
msgid "The TTL index may not be compound (may not have multiple fields)."
@@ -81,19 +81,25 @@ msgid ""
8181
"the index, the document will expire when the *lowest* (i.e. earliest) date "
8282
"matches the expiration threshold."
8383
msgstr ""
84+
"如果TTL字段容纳了一个数组并且在索引中有多个日期类型的数据,文档将在 *最小的"
85+
"* (即最早的)日期等于过期临界值时过期。"
8486

8587
#: ../source/tutorial/expire-data.txt:45
8688
msgid ""
8789
"You cannot create a TTL index on a capped collection, because MongoDB "
8890
"cannot remove documents from a capped collection."
8991
msgstr ""
92+
"你不能在一个固定集合上创建TTL索引,因为MongoDB不能从固定集合中删除文档。"
9093

9194
#: ../source/tutorial/expire-data.txt:48
9295
msgid ""
9396
"You cannot use :method:`~db.collection.ensureIndex()` to change the value "
9497
"of ``expireAfterSeconds``. Instead use the :dbcommand:`collMod` database "
9598
"command in conjunction with the :collflag:`index` collection flag."
9699
msgstr ""
100+
"你不能使用 :method:`~db.collection.ensureIndex()` 改变 "
101+
"``expireAfterSeconds`` 的值。作为替代,请使用 :dbcommand:`collMod` 数据库命"
102+
"令连同 :collflag:`index` 集合标志。"
97103

98104
#: ../source/tutorial/expire-data.txt:53
99105
msgid ""
@@ -102,13 +108,19 @@ msgid ""
102108
"is building. If you build a TTL index in the foreground, MongoDB begins "
103109
"removing expired documents as soon as the index finishes building."
104110
msgstr ""
111+
"当你在 :ref:`background <index-creation-background>` 创建一个TTL索引时,TTL"
112+
"线程可以在创建索引的同时开始删除文档。如果你在前台创建一个TTL索引,一旦索引"
113+
"完成创建,MongoDB就开始删除过期的文档。"
105114

106115
#: ../source/tutorial/expire-data.txt:59
107116
msgid ""
108117
"When the TTL thread is active, you will see :doc:`delete </core/write-"
109118
"operations>` operations in the output of :method:`db.currentOp()` or in the "
110119
"data collected by the :ref:`database profiler <database-profiler>`."
111120
msgstr ""
121+
"当TTL线程活跃着时,你可以在 :method:`db.currentOp()` 的输出和 :ref:"
122+
"`database profiler <database-profiler>` 收集的数据中看到 :doc:`delete </"
123+
"core/write-operations>` 操作。"
112124

113125
#: ../source/tutorial/expire-data.txt:64
114126
msgid ""
@@ -117,27 +129,36 @@ msgid ""
117129
"However, the TTL background thread *does* run on secondaries. :term:"
118130
"`Secondary` members replicate deletion operations from the primary."
119131
msgstr ""
132+
"当在 :term:`replica sets <replica set>` 上使用TTL索引时,TTL后台线程 *只* 删"
133+
"除在 :term:`primary` 成员中的文档。不过,TTL后台线程 *确实* 也运行在从节点"
134+
"上。 :term:`Secondary` 成员从主节点复制删除操作。 "
120135

121136
#: ../source/includes/fact-ttl-collection-background-timing.rst:1
122137
msgid ""
123138
"The TTL index does not guarantee that expired data will be deleted "
124139
"immediately. There may be a delay between the time a document expires and "
125140
"the time that MongoDB removes the document from the database."
126141
msgstr ""
142+
"TTL索引不保证过期的数据会立即被删除。从文档过期到文档被MongoDB从数据库中删除"
143+
"有一个延迟。"
127144

128145
#: ../source/includes/fact-ttl-collection-background-timing.rst:5
129146
msgid ""
130147
"The background task that removes expired documents runs *every 60 seconds*. "
131148
"As a result, documents may remain in a collection *after* they expire but "
132149
"*before* the background task runs or completes."
133150
msgstr ""
151+
"删除过期文档的后台任务 *每60秒* 运行一次。因此,文档在他们 *过期后*但在后台"
152+
"任务 *运行并完成前* 仍会留在集合中。"
134153

135154
#: ../source/includes/fact-ttl-collection-background-timing.rst:9
136155
msgid ""
137156
"The duration of the removal operation depends on the workload of your :"
138157
"program:`mongod` instance. Therefore, expired data may exist for some time "
139158
"*beyond* the 60 second period between runs of the background task."
140159
msgstr ""
160+
"删除操作持续的时间由你的 :program:`mongod` 实例的工作负荷决定。因此,某些时"
161+
"候,过期的数据可能会在两次后台任务运行之间存在 *超过* 60秒的时间。"
141162

142163
#: ../source/tutorial/expire-data.txt:72
143164
msgid ""
@@ -148,10 +169,14 @@ msgid ""
148169
"possibility of storage fragmentation caused by frequent delete operations "
149170
"and leads to more predictable storage use patterns."
150171
msgstr ""
172+
"所有拥有设置了 ``expireAfterSeconds`` 选项的索引的集合都启用了 :collflag:"
173+
"`usePowerOf2Sizes`。用户不能修改该设置。作为启用 :collflag:"
174+
"`usePowerOf2Sizes` 的结果,MongoDB必须分配比数据大小更多的磁盘空间。这种方法"
175+
"有助于降低频繁的删除造成存储碎片的可能性并产生更多的可预测的存储使用模式。"
151176

152177
#: ../source/tutorial/expire-data.txt:81
153178
msgid "Procedures"
154-
msgstr ""
179+
msgstr "步骤"
155180

156181
#: ../source/tutorial/expire-data.txt:83
157182
msgid ""

0 commit comments

Comments
 (0)