Skip to content

GEOWAVE-626: Address performance issue when querying multiple range c…#631

Merged
dcy2003 merged 1 commit into0.9.1from
GEOWAVE-626
Feb 22, 2016
Merged

GEOWAVE-626: Address performance issue when querying multiple range c…#631
dcy2003 merged 1 commit into0.9.1from
GEOWAVE-626

Conversation

@rwgdrummer
Copy link
Copy Markdown
Contributor

…onstraints.

break;
}
}
i = j;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logically this seems to have a potential inconsistency, right? let's say you have ranges, a,b,c, and d (starts of the range are sorted in that order). Imagine a, b, and c are very long spans, d is a very short span. a is so long it overlaps d, but b and c aren't quite as long but overlap each other. It seems this logic would find that a and d overlap, and skip merging b and c together. I know this may be an edge case that we're willing to trade performance for algorithmic accuracy here. I just wanted to at least point it out, so if we decide the accuracy tradeoff is still worth it, we at least add a comment to explain.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying a does not overlap b and c?
if a does not overlap b and c, and 'a' overlaps d, then d must start before b and c.
Since the order is a,b,c,d and a overlaps d, a must have an 'end' past d's start time. The d starts after b and c, so a overlaps b and c as well.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, sorry for the confusion...a will merge with b, then c, then d in my scenario so b and c will never need to be merged directly together, ignore my comment

dcy2003 added a commit that referenced this pull request Feb 22, 2016
GEOWAVE-626: Address performance issue when querying multiple range c…
@dcy2003 dcy2003 merged commit 3ce3493 into 0.9.1 Feb 22, 2016
@dcy2003 dcy2003 deleted the GEOWAVE-626 branch February 23, 2016 13:36
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

Successfully merging this pull request may close these issues.

3 participants