Add support for bulk indexing #16

Closed
clintongormley opened this Issue Nov 1, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

clintongormley commented Nov 1, 2012

Add Elastic::Model::Bulk to save/overwrite documents in batches for improved performance:

$bulk = $model->bulk(
    size        => 1000,
    on_conflict => sub {...},
    on_error    => sub {...}
);

$bulk->save($doc);
$bulk->overwrite($doc);
...

$bulk->commit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment