PolarDB for Oracle allows you to use Ganos to create spatial indexes in parallel. Ganos uses the spatial sorting (GiST Sort) method to create indexes in parallel and reduce the number of read and write operations on disks. This way, the indexing efficiency is improved. This topic provides an example to show how you can accelerate the indexing process for millions of spatio-temporal data records.
Background information
PostgreSQL databases are suitable for storing and managing spatial data. An increase in data volume can increase performance issues. It is time-consuming to create spatial indexes for tens of millions of data records.
Prerequisites
- An Alibaba Cloud account is created.
- A cluster of PolarDB for Oracle is created. In the example described in this topic, a cluster of PolarDB for Oracle that has 4 cores and 16 GB memory is used.
Additional considerations
The GiST Sort method is suitable only for point data. If you use this method for other types of spatial data, the query performance of indexes can be compromised.
Procedure
Conclusion
Compared with the traditional method, the GiST Sort method improves the indexing efficiency for spatial data by approximately nine times.