1. A method of executing a plan at a database, comprising the steps of: maintaining compiled code implementing a plan with respect to items in a space within the database; maintaining a first version of first metadata, wherein the first metadata describes characteristics of the space; and executing the compiled code; wherein the step of executing the compiled code comprises binding the compiled code to the first version of the first metadata.