lib/dynamoid/criteria/chain.rb
# If the query matches an index on the associated class, then this method will retrieve results from the index table.
#
# @return [Array] an array of the found records.
#
# @since 0.2.0
If the query matches an index on the associated class, then this method will retrieve results from the index table.
If the query matches an index on the associated class then this method will retrieve results from the index table .
def records_with_index
        ids = ids_from_index
        if ids.nil? || ids.empty?
          []
        else
          ids = ids.to_a
          if @start
            ids = ids.drop_while { |id| id != @start.hash_key }.drop(1)
          end
          ids = ids.take(@limit) if @limit
          Array(source.find(ids, consistent_opts))
        end
      end
def records_with_index ids = ids_from_index if ids . nil? || ids . empty? [ ] else ids = ids . to_a if @start ids = ids . drop_while { | id | id != @start . hash_key } . drop ( 1 ) end ids = ids . take ( @limit ) if @limit Array ( source . find ( ids , consistent_opts ) ) end end
If the query matches an index on the associated class, then this method will retrieve results from the index table.
If the query matches an index on the associated class then this method will retrieve results from the index table .
an array of the found records.
an array of the found records .
Array
since
None