Evaluation of workspace-local queries on a repository that supports
versioning is enabled by tracking which versions of resources that are
stored in the repository are associated with particular workspaces. A
mapping is created and maintained for each workspace and each
workspace-enabled table, i.e., a repository table that supports multiple
versions of resources in the table. The mapping, such as a bit vector, is
indexed by resource identifier. A set bit indicates that a particular
resource version that corresponds to the bit is associated with the
particular workspace. Therefore, the mapping indicates which rows in the
workspace-enabled table are in the particular workspace. Index-based and
functional evaluation schemes may utilize the per workspace, per table
mapping to evaluate queries on the versioned repository. A new operator
(IN_WORKSPACE) is introduced, through which an evaluation routine is
invoked to determine whether or not a particular row maps to a particular
workspace.