]> git.openstreetmap.org Git - rails.git/commitdiff
Reduce maximum changeset size to 10k changes
authorFrederik Ramm <frederik@remote.org>
Sun, 31 Jul 2016 21:32:27 +0000 (23:32 +0200)
committerTom Hughes <tom@compton.nu>
Tue, 31 Jan 2017 18:15:42 +0000 (18:15 +0000)
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 #1259

app/models/changeset.rb

index 6909ba948bc4c33fb1079f90e963a82e9e515ae3..549600df6d26819bdce4a1aa04fa816ee8227e77 100644 (file)
@@ -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