results_count is used to build a nice progress bar but sometimes calculating the number of records is a computationally-expensive task (for example, multi gigabyte .mbox files). When we run a job in the background, we probably don't want the speed penalty that comes from calculating this number.
We should be able to pass Runner a configuration option to skip calling this method. If the job is running in a tty, the progress bar will just show the current count without a progress bar.
results_count
is used to build a nice progress bar but sometimes calculating the number of records is a computationally-expensive task (for example, multi gigabyte.mbox
files). When we run a job in the background, we probably don't want the speed penalty that comes from calculating this number.We should be able to pass
Runner
a configuration option to skip calling this method. If the job is running in a tty, the progress bar will just show the current count without a progress bar.