主权项 |
1. A computer-implemented method for indexing data items that are associated with a geospatial component and a temporal component, the computer implemented method comprising:
receiving a data item that is associated with at least a geospatial component and a temporal time component; generating, based on the geospatial component, an index key for indexing the data item in the geospatial index, wherein the index key is a Z-order curve value; storing a reference to the data item in a geospatial index using the index key; receiving index configuration data indicating a first time granularity, a second time granularity, and a third time granularity; generating a first plurality of database index buckets for the first time granularity, a second plurality of database index buckets for the second time granularity, and a third plurality of database index buckets for the third time granularity; storing, based on the time component, a second reference to the data item in a database index bucket of the first plurality, the second plurality, and the third plurality; receiving a search query that comprises a second geospatial component and a second time component; generating one or more second queries based on the second geospatial component and the second time component, wherein each of the second queries corresponds to a particular bucket of the first plurality, second plurality, or third plurality of database index buckets; retrieving, for each particular bucket, one or more data items stored in the particular bucket; wherein the method is performed by one or more computing devices. |