def limit_ids result
      return unless @query.has_limit?
      result.each do |clazz, ids|
        result[clazz] = ids.slice 0, @query.limit
      end
    end
def limit_ids result
      return unless @query.has_limit?
      result.each do |clazz, ids|
        result[clazz] = ids.slice 0, @query.limit
      end
    end
Truncates the result set based on the :limit parameter in the query.