Skip to content

Commit

Permalink
changed query limit to 1000000
Browse files Browse the repository at this point in the history
  • Loading branch information
tjalil committed Jan 15, 2015
1 parent 0a58894 commit d934a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parse_resource/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def count(count=1)
end

# Divides the query into multiple chunks if you're running into RestClient::BadRequest errors.
def chunk(count=100)
def chunk(count=1000000)
criteria[:chunk] = count
self
end
Expand Down Expand Up @@ -154,7 +154,7 @@ def get_relation_objects(objects)
end

def chunk_results(params={})
criteria[:limit] ||= 100
criteria[:limit] ||= 1000000

start_row = criteria[:skip].to_i
end_row = [criteria[:limit].to_i - start_row - 1, 1].max
Expand Down

0 comments on commit d934a90

Please sign in to comment.