A computer readable storage medium comprises:
- a first memory section that stores operational instructions that when executed by a set of query and response computing nodes of a plurality of query and response computing nodes of pluralities of computing nodes of pluralities of computing device clusters of a parallelized database system, cause the set of query and response computing nodes to:
- obtain a query regarding a dataset, wherein the query includes an optimized K means model generation operation;
- determine K means model parameters for executing the optimized K means model generation operation, wherein the K means model parameters include a k value indicating a number of centroids of the K means model;
- generate a query execution plan based on the optimized K means model generation operation and the K means model parameters, wherein the query execution plan identifies:
- a plurality of processing core resources of pluralities of processing core resources of the pluralities of computing device clusters to execute an initial K means model generation process, wherein a first computing device of a plurality of computing devices of a first computing device cluster of the pluralities of computing device clusters includes a first plurality of computing nodes of the pluralities of computing nodes, wherein a first computing node of the first plurality of computing nodes includes a first plurality of processing core resources of the pluralities of processing core resources;
- a set of processing core resources of the pluralities of processing core resources to execute a final K means model generation process;
- and
- a plurality of training data corresponding to the dataset, wherein the plurality of training data is organized into rows of numerical instances and columns of numerical features, and wherein the k value is equal to amount of the columns;
- and
- provide corresponding portions of the query execution plan to the plurality of processing core resources and the set of processing core resources;
- and
- a second memory section that stores operational instructions that when executed by the plurality of processing core resources, cause the plurality of processing core resources to:
- execute the initial K means model generation process on the plurality of training data to produce a plurality of results;
- a third memory section that stores operational instructions that when executed by the set of processing core resources, cause the set of processing core resources to:
- to execute the final K means model generation process on the plurality of results to produce a K means model;
- and
- a fourth memory section that stores operational instructions that when executed by memory resources of at least some of the pluralities of processing core resources, cause the memory resources to:
- store the K means model to produce a stored K means model.