A database system capable of dynamically creating one or more keys
associated with one or more pre-compiled queries includes a plurality of
slave nodes that are operable to execute one or more pre-compiled
queries. Each of the plurality of slave nodes operates to store one or
more usage statistics that relate to the execution of the one or more
pre-compiled queries. The system also includes at least one master node
that is coupled to each of the plurality of slave nodes. The at least one
master node is operable to receive the one or more usage statistics from
each of the plurality of slave nodes. Furthermore, the at least one
master node is operable to identify, based at least in part on the one or
more usage statistics, one or more keys to dynamically create. Moreover,
each of the plurality of slave nodes dynamically creates the one or more
keys for use in executing the one or more pre-compiled queries.