Skip to content

Conversation

erizocosmico
Copy link
Contributor

Fixes #196

If a query returned less rows than the limit, it would make an additional query and then it would mark the batcher as EOF.
This change takes care of that case and makes sure no additional query is made.

If a query returned less rows than the limit, it would
make an additional query and then it would mark the
batcher as EOF.
This change takes care of that case and makes sure no
additional query is made.

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
@codecov
Copy link

codecov bot commented Jul 12, 2017

Codecov Report

Merging #201 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
+ Coverage   79.12%   79.22%   +0.09%     
==========================================
  Files          19       19              
  Lines        3646     3653       +7     
==========================================
+ Hits         2885     2894       +9     
+ Misses        546      545       -1     
+ Partials      215      214       -1
Impacted Files Coverage Δ
batcher.go 81.81% <100%> (+2.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55ff0a4...1ea3474. Read the comment docs.

@erizocosmico erizocosmico merged commit 2acd313 into src-d:master Jul 12, 2017
@erizocosmico erizocosmico deleted the perf/not-query-if-no-more-rows branch July 12, 2017 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant