/plushcap/analysis/cockroach-labs/how-we-built-scalable-spatial-data-spatial-indexing-in-cockroachdb

How We Built Scalable Spatial Data & Spatial Indexing in CockroachDB

What's this blog post about?

CockroachDB has introduced support for spatial data storage and processing, compatible with PostGIS. The new feature enables the use of spatial indexing in a horizontally scalable, dynamically sharded database. This is achieved by using a divide the space approach, which divides the space being indexed into buckets of various sizes. CockroachDB's implementation uses the S2 library from Google for cell covering and ID assignment. The new feature also includes two new distributed query processors, inverted filterer and inverted joiner, that apply to spatial SELECT and JOIN queries. These processors evaluate general set expressions derived from the expressions being evaluated and can be distributed for scalable evaluation.

Company
Cockroach Labs

Date published
Dec. 9, 2020

Author(s)
Sumeer Bhola

Word count
2625

Language
English

Hacker News points
153


By Matt Makai. 2021-2024.