Closed nelsonic closed 8 years ago
One possible issue with switching the order of operations of the s3 write and publish of results is that the s3 write will potentially be performing a number of save operations, and waits until all are complete before passing on any results.
We might want to do something a little like here and here where the results are passed on incrementally as the per-result iterator completes to avoid waiting for all s3 save operations to complete before sending the first result.
@@ master #60 diff @@
==========================================
Files 1 1
Lines 157 161 +4
Methods 25 26 +1
Messages 0 0
Branches 31 32 +1
==========================================
+ Hits 157 161 +4
Misses 0 0
Partials 0 0
Powered by Codecov. Last updated by a32b6ca...33ee7c4
@lennym does the fact that we're using the ee
in the lambda not already cover us for that?
i.e. the results are already being individually pushed by the lambda so we should only be saving one record at a time...?
@nelsonic For packages we get them one at a time, but for tiles we still get them en masse.
I think.
It probably won't be an issue, but it's worth keeping an eye on if we see a performance hit.
@lennym agree. I think @tomgco is implementing monitoring. 👍
@jruts this PR should fix both:
Note: it's a backward-compatible change but I've increased the minor version number because it has changed functionality...