Patent attributes
Methods, systems, and computer-readable media for schema-based spatial partitioning in a time-series database are disclosed. A time-series database divides elements of time-series data of a plurality of time series into partitions according to a clustering scheme. The time series are associated with respective schemas. The schemas comprise dimension names and measure names. The clustering scheme is determined based (at least in part) on the schemas and dimension values, and the schemas are determined based (at least in part) on the elements of time-series data. The time-series database stores the elements of time-series data from the plurality of partitions into one or more storage tiers. The time-series database performs a query of the time-series data in one or more of the storage tiers. The query is performed based (at least in part) on the clustering scheme.