Skip to content

Commit 7cb1118

Browse files
author
Sam Kleinman
committed
minor: edit to use case docs
1 parent 17c7fca commit 7cb1118

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

source/use-cases/inventory-management.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ return them to available inventory if they do not.
371371

372372
# First Pass: Find any carts that are active and refresh the carted items
373373
for cart in db.cart.find(
374-
{ '_id': {'$in': carted.keys() },
374+
{ '_id': {'$in': carted.keys() },
375375
'status':'active'}):
376376
cart = carted[cart['_id']]
377377

@@ -391,11 +391,9 @@ return them to available inventory if they do not.
391391
{ '$inc': { 'qty': carted_item['qty'] },
392392
'$pull': { 'carted': { 'cart_id': cart_id } } })
393393

394-
TODO edit and polish the next paragraph.
395-
396-
To summarize: This operation finds all "carted" items that have
397-
time stamps older than the threshold. Then, the process makes two
398-
passes over these items:
394+
To summarize: This operation finds all "carted" items that have time
395+
stamps older than the threshold. Then, the process makes two passes
396+
over these items:
399397

400398
#. Of the items with time stamps older than the threshold, if the cart
401399
is still active, it resets the time stamp to maintain the carts.

source/use-cases/metadata-and-asset-management.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,6 @@ shard the collection
487487
... key : { '_id': 1 } })
488488
{ "collectionsharded": "cms.assets.chunks", "ok": 1}
489489

490-
Note that sharding on the ``_id`` field ensures routable queries because all reads
491-
from GridFS must first look up the document in ``cms.assets.files``
492-
and then look up the chunks separately.
490+
Sharding on the ``_id`` field ensures routable queries because all
491+
reads from GridFS must first look up the document in
492+
``cms.assets.files`` and then look up the chunks separately.

0 commit comments

Comments
 (0)