Azure Table Storage is a NoSQL key-value store that can store large amounts of structured, non-relational data. It's a cost-effective storage solution for applications that require flexible data models and rapid development.
Unlike traditional relational databases, Table Storage does not enforce a schema on entities. This means that entities within the same table do not need to have the same set of properties. This flexibility is ideal for handling evolving data requirements and diverse data structures.
Table Storage is designed for massive scale. By partitioning your data effectively using the PartitionKey
, you can achieve high throughput and availability. Queries that target entities within the same partition are generally faster.
Note: Table Storage is ideal for structured, non-relational data. For complex queries, relationships between entities, or ACID transactions, consider Azure Cosmos DB or Azure SQL Database.
{
"PartitionKey": "Customer",
"RowKey": "12345",
"Name": "John Doe",
"Email": "john.doe@example.com",
"CreatedDate": "2023-10-27T10:00:00Z",
"IsActive": true
}
You can query entities using OData filters. Queries can be scoped to a specific table or even a specific partition. Table Storage supports point queries (retrieving a single entity by its PartitionKey and RowKey) and range queries within a partition.
Table Storage supports a variety of primitive data types. When storing data, it's important to ensure that the values conform to the expected type. The following are some of the common data types:
Edm.String
Edm.Int32
Edm.Int64
Edm.Double
Edm.Boolean
Edm.DateTime
Edm.Guid
Edm.Binary