Module: Tire::Model::Import
- Defined in:
- lib/tire/model/import.rb
Overview
Note:
See Tire::Import::Strategy
.
Provides support for efficient and effective importing of large recordsets into Elasticsearch.
Tire will use dedicated strategies for fetching records in batches when ActiveRecord or Mongoid models are detected.
Two dedicated strategies for popular pagination libraries are also provided: WillPaginate and Kaminari. These could be used in situations where your model is neither ActiveRecord nor Mongoid based.
You can implement your own custom strategy and pass it via the :strategy
option.
Note, that it's always possible to use the Tire::Index#import
method directly.
Defined Under Namespace
Modules: ClassMethods, Strategy