Compartir vía


Table reference for the relational warehouse database

TFS 2017 | TFS 2015 | TFS 2013

You can create reports and query for data by using the warehouse database. The data in the warehouse is collected from the Azure DevOps operational stores and organized in a set of tables, views, and table-valued functions that are designed for creating reports.

Team Foundation Warehouse

The warehouse contains data about:

  • Builds
  • Source code
  • Test results and code coverage
  • Work items like tasks and bugs.

The relationships between these sets of data are created in Azure DevOps and kept in the warehouse. That's why you can create queries to explore relationships between these integrated sets of data and better understand what is happening on your projects.

The data in the warehouse is stored in fact and dimension tables. This pattern for storing data in star and snowflake schemas is described in the following Microsoft article: Introduction to Dimensions.

Some other common patterns occur in the warehouse:

  • All fact tables reference DimTeamProject, because all data in Azure DevOps is organized by projects and project collections. Some dimensions also reference the DimTeamProject so that you can more easily use them as project-filter parameters in your reports.
  • All fact tables reference DimDate to indicate the date on which the fact occurred.
  • Many fact tables reference DimPerson, sometimes more than once. For example, the work item facts reference DimPerson to indicate who a work item is assigned to and who changed it most recently.

Builds

You can query for data about builds by using four fact tables, as the following illustration shows. Each fact table uses the build dimension table DimBuild to store many details about the builds.

Build Fact Tables

Fact Table Description
Build Details tables Basic information about each build, such as the build status and quality.
Build Changeset tables Changesets that were included in each build.
Build Project tables Files that were built and the platforms and flavors of the builds.
Build Coverage tables The extent to which the code was covered by tests that were carried out against the build.

For more information about builds, see Build.

Source Code

You can query for data about code and other files that are under version control by using the fact tables in the following illustration. DimFile and DimChangeset are the two primary dimensions that are associated with these fact tables. DimFile provides information about files and folders, without regard to specific versions of those files. DimChangeset provides information about the changesets.

Fact Tables about Source Code

Fact Table Description
Code Churn tables Basic information about each build.
Build Changeset tables Changesets that were included in the build.
Build Project tables Files that were built and the platforms and flavors that were used.
Work Item Changeset tables Links between work items and changesets.

For more information about version control, see Code.

Tests

You can query for information about test results and analyze how well the tests cover the code by using the tables in the following illustration.

Fact Tables for Tests

Fact Table Description
Test Result tables Tests and their results.
Run Coverage tables The extent to which the code was covered by tests in a test run.
Build Coverage tables The extent to which the code was covered by tests that were carried out against the build.
Work Item Test Result tables Links between work items and test results.

For more information, see Testing overview and Using Code Coverage to Determine How Much Code is being Tested.

Tasks, bugs, and other types of work items

You can query for information about tasks, bugs, and other types of work items by using the work item tables in the following illustration. Each work item fact table uses the work item dimension table to store many details about the work items.

Fact Tables for Tasks, Bugs, and Other Work Items

Fact Table Description
Current Work Item tables The current state of each work item.
Work Item History tables The full history of each work item.
Work Item Link History tables The full history of links between work items.
Work Item Category tables The categories that are used to associate similar types of work items.
Work Item Changeset tables Links between work items and changesets.
Work Item Test Result tables Links between work items and test results.