lib/wyrm/pump.rb
# Use limit / offset. Last fallback if there are no keys (or a compound primary key?).
Use limit / offset. Last fallback if there are no keys (or a compound primary key?).
Use limit / offset . Last fallback if there are no keys ( or a compound primary key? ) .
def paginated_dump( &encode_block )
      records_count = 0
      table_dataset.order(*primary_keys).each_page(page_size) do |page|
        logger.info "#{__method__} #{table_name} #{records_count}"
        logger.debug page.sql
        page.each &encode_block
        records_count += page_size
      end
    end
def paginated_dump ( & encode_block ) records_count = 0 table_dataset . order ( * primary_keys ) . each_page ( page_size ) do | page | logger . info "#{__method__} #{table_name} #{records_count}" logger . debug page . sql page . each & encode_block records_count += page_size end end
Use limit / offset.
Use limit / offset .
encode_block
<not_specific>