Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate latest-changes query #44

Open
nrenner opened this issue Oct 21, 2018 · 1 comment
Open

Evaluate latest-changes query #44

nrenner opened this issue Oct 21, 2018 · 1 comment

Comments

@nrenner
Copy link
Owner

nrenner commented Oct 21, 2018

latest-changes seems to be faster for area queries than achavi. Evaluate if this query produces the same result and indeed is faster (and why - maybe because not using changed?) and could be used instead.

[adiff:"' + last_week + '"][bbox:' + bbox + '][out:xml][timeout:22];
way->.ways;
(
    .ways >;
    node;
);
out meta;
.ways out geom meta;

https://github.com/tyrasd/latest-changes/blob/fb878927d2681777f619123f0a8ad3a05d6cdf8c/js/site.js#L47

@mmd-osm
Copy link

mmd-osm commented Nov 3, 2018

changed is more expensive, as it has to evaluate every change in the given time frame t0..t1. The query above simply returns the difference of the query, once executed at t0, and again at t1. If your time frame is rather large, this method might miss some changes that have a zero net effect (e.g. an edit which gets reverted very quickly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants