Overview
Tenant Properties are an advanced feature that allows you to define complex partition keys for sophisticated multi-tenant data architectures. Unlike basic Column Pre-Filtering, Tenant Properties provide flexible column mapping across multiple tables with different naming conventions.When to use Tenant Properties: When you have complex database schemas with inconsistent column naming, multiple tenant hierarchy levels, or need advanced partition key management.For basic tenancy needs, use Column Pre-Filtering instead.
Database Requirements
Your database tables must have tenant identifier columns:How It Works
Tenant Properties automatically map logical tenant concepts to physical database columns: Property Definition:Configuration

Property Settings
Property Name- Logical identifier for the tenant concept
- Examples:
company
,organization
,customer_context
- Table-Specific: Map to exact
table.column
combinations - Wildcard: Use
*
for consistent column names across all tables - Mixed Approach: Combine specific mappings with wildcards
- Required: Mandatory for all data access (strict isolation)
- Optional: Applied only when tenant provides the value
Example Configurations
Scenario 1: Consistent naming with wildcardsPractical Example
Problem: You have 10 tables, each usinguuid
as the tenant identifier column, but they represent different logical concepts.
Solution:
company_uuid
to the physical uuid
column across all your tables, providing consistent tenant filtering regardless of the generic column name.
Advanced Use Cases
Legacy System Integration
When integrating multiple systems with different column naming conventions:Hierarchical Organizations
For complex organizational structures:When NOT to Use Tenant Properties
- Simple, consistent schemas: Use basic Column Pre-Filtering instead
- Single-level tenancy: Basic tenant creation is sufficient
- Small applications: The complexity overhead isn’t worth it