mmd-osm / Overpass-API

Performance optimized Overpass API fork
GNU Affero General Public License v3.0
19 stars 3 forks source link

Query performance comparison #4

Open mmd-osm opened 6 years ago

mmd-osm commented 6 years ago

0.7.54

peek 2017-10-10 19-59

test758+

Note: web browser configuration according to: https://github.com/mmd-osm/Overpass-API/wiki/Switching-to-a-test-Overpass-API-instance

peek 2017-10-10 19-58

peek 2017-10-13 19-39

mmd-osm commented 6 years ago

Endless Achavi demo

Achavi endless loop

Small change made to Achavi to introduce endless mode with 1s wait time:

 diff --git a/js/OverpassAPI.js b/js/OverpassAPI.js
index ac708c6..2b316cb 100644
--- a/js/OverpassAPI.js
+++ b/js/OverpassAPI.js
@@ -117,7 +117,7 @@ OverpassAPI.prototype.loadDiff = function(from, to, relations, postLoadCallback,
     }
     dateRange = '"' + mindate + '"' + maxdate;

-    var data_url = 'https://overpass-api.de/api/interpreter';
+    var data_url = 'http://5.9.84.147/api/interpreter';
     url = data_url + '?data=[adiff:' + dateRange
         + '];(node(bbox)(changed);way(bbox)(changed);' + (relations ? 'relation(bbox)(changed);' : '') + ');out meta geom(bbox);';

diff --git a/js/map.js b/js/map.js
index fd246c1..6565b40 100644
--- a/js/map.js
+++ b/js/map.js
@@ -237,6 +237,8 @@

         function handleDiff() {
             loading.loadEnd();
+
+            setTimeout(function() { location.href="/achavi/index.html?changeset=" + (parseInt(id,10) + 1) } , 1000);
         }

         function handleChangeset() {