ankane / dbx

A fast, easy-to-use database library for R
Other
187 stars 15 forks source link

inBatches forgets to submit last (partial) batch #8

Closed timshac closed 5 years ago

timshac commented 5 years ago

In helpers.R

batch_count <- row_count/batch_size should be batch_count <- ceiling(row_count/batch_size) so that 1:batch_count is a sequence that includes the last batch.

-Tim

ankane commented 5 years ago

Hey @timshac, thanks for reporting and getting to the bottom of it 👍 Fixed on master.