• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pouchdb / pouchdb / 12310
100%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2021 12:05PM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
12310

push

travis-ci-com

web-flow
Let caller set the change batch size when updating views (#8320)

* Refactor: pass batch size into `updateViewInQueue()`

We'd like to make the batch size for this process configurable by the
caller of the `query()` method. In order to make this possible, we
replace references to the `CHANGES_BATCH_SIZE` constant with an option
setting that's passed from `queryPromised()` into `updateView()` and
then into `updateViewInQueue()`.

* Let caller set the change batch size when updating views

Some users need to be able to increase or reduce the size of changes
batches used when updating view indexes, to make the best use of the
storage adapter they're running.

For example, memory constraints or processing capacity might necessitate
using smaller batch sizes.

This change lets the caller set a DB option named
`view_update_changes_batch_size`, which changes the batch size we use
for updating views in `abstract-mapreduce`. It defaults to 50, the value
of the existing `CHANGES_BATCH_SIZE` constant in this module.

* Document the `view_update_changes_batch_size` option

2957 of 3198 branches covered (92.46%)

5982 of 5982 relevant lines covered (100.0%)

19428.77 hits per line

Jobs
ID Job ID Ran Files Coverage
13 12310.13 (NPM_CONFIG_PROGRESS="false" SERVER=pouchdb-server POUCHDB_SERVER_FLAGS=--in-memory PLUGINS=pouchdb-find COVERAGE=1 COMMAND=report-coverage) 17 Jul 2021 12:05PM UTC 0
100.0
Travis Job 12310.13
Source Files on build 12310
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #12310
  • b359d788 on github
  • Prev Build on master (#12305)
  • Next Build on master (#12312)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc