Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Handle out-of-range folds when populating the spatial index #211

Merged
merged 1 commit into from
Feb 16, 2017

Conversation

nathansobo
Copy link
Contributor

When initially populating the spatial index, the row range isn't expanded to account for overlapping fold row ranges because the index isn't populated yet.

When updateSpatialIndex is called with an oldEndBufferRow exceeding the indexed buffer row count, we need to perform additional queries to the foldsMarkerLayer if folds exceed the requested buffer row range to ensure folds with intersecting row ranges are correctly inserted into the index.

This PR also adds a randomized test focusing exclusively on the issue of a pre-populated foldsMarkerLayer.

/cc @maxbrunsfeld

When initially populating the spatial index, the row range isn't
expanded to account for overlapping fold row ranges because the index
isn't populated yet.

When `updateSpatialIndex` is called with an `oldEndBufferRow` exceeding
the indexed buffer row count, we need to perform additional queries to
the `foldsMarkerLayer` if folds exceed the requested buffer row range to
ensure folds with intersecting row ranges are correctly inserted into
the index.

This commit also adds a randomized test focusing exclusively on the
issue of a pre-populated `foldsMarkerLayer`.
@maxbrunsfeld
Copy link
Contributor

👏 Nice!

@nathansobo nathansobo merged commit 2e9b8ad into master Feb 16, 2017
@nathansobo nathansobo deleted the ns-prepopulated-folds branch February 16, 2017 18:10
nathansobo pushed a commit that referenced this pull request Feb 17, 2017
Handle out-of-range folds when populating the spatial index
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants