Skip to content

Commit

Permalink
Reduce maximum changeset size to 10k changes
Browse files Browse the repository at this point in the history
Ten thousand changes ought to be enough for any normal mapping activity.

Automatic edits and imports are controlled by scripts anyway so it doesn't
make a difference to them as they just have to adapt the limit.

The reason for my suggestion is that large changesets are becoming
increasingly difficult to handle due to frequent timeouts when trying
to load and process them.

The changeset size limit is returned by the API in the "capabilities" request
so client software that honours that information will automatically pick up
the new limit.

Closes openstreetmap#1259
  • Loading branch information
woodpeck authored and tomhughes committed Jan 31, 2017
1 parent 34d663f commit ad2b4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/changeset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Changeset < ActiveRecord::Base
EXPAND = 0.1

# maximum number of elements allowed in a changeset
MAX_ELEMENTS = 50000
MAX_ELEMENTS = 10000

# maximum time a changeset is allowed to be open for.
MAX_TIME_OPEN = 1.day
Expand Down

0 comments on commit ad2b4fe

Please sign in to comment.