mapbox / cardboard

tile indexed geo database interface.
ISC License
52 stars 10 forks source link

Batchmode #119

Closed rclark closed 9 years ago

rclark commented 9 years ago

Adds cardboard.batch.put() and cardboard.batch.remove(). Pulls some functions into a utils module so that they can be used by atomic & batch operations.

To do:

cc @willwhite

willwhite commented 9 years ago

consider a "full-blown" batch function that can put and/or delete. Would require upstream changes in dyno.

Opened https://github.com/mapbox/dyno/issues/81 to track this.

rclark commented 9 years ago

The readme really needs some help so I'm digging into that. In doing so I've noticed a couple of related API adjustments I should make -- specifically, this PR should make cardboard.put a single-feature request, while introducing cardboard.batch.put as a way to do bulk operations.