Skip to content

Commit

Permalink
Add TODO on #17
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Aug 27, 2014
1 parent cf08d5c commit 3cef744
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/taoensso/faraday.clj
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,13 @@
`scan` results.
Ref. http://goo.gl/KLwnn (official parallel scan documentation)."

;; TODO GitHub #17:
;; http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html
;; In a parallel scan, a Scan request that includes ExclusiveStartKey must
;; specify the same segment whose previous Scan returned the corresponding
;; value of LastEvaluatedKey.

[client-opts table total-segments & [opts]]
(let [opts (assoc opts :total-segments total-segments)]
(->> (mapv (fn [seg] (future (scan client-opts table (assoc opts :segment seg))))
Expand Down

0 comments on commit 3cef744

Please sign in to comment.