You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/table-api-faq.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.author: sngun
12
12
13
13
The Azure Cosmos DB Table API is available in the [Azure portal](https://portal.azure.com) First you must sign up for an Azure subscription. After you've signed up, you can add an Azure Cosmos DB Table API account to your Azure subscription, and then add tables to your account. You can find the supported languages and associated quick-starts in the [Introduction to Azure Cosmos DB Table API](table-introduction.md).
14
14
15
-
## Table API in Azure Cosmos DB Vs Azure Table storage
15
+
## <aid="table-api-vs-table-storage"></a>Table API in Azure Cosmos DB Vs Azure Table storage
16
16
17
17
### Where is Table API not identical with Azure Table storage behavior?
Copy file name to clipboardExpand all lines: articles/cosmos-db/table-storage-design-guide.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,7 +208,7 @@ Here are some general guidelines for designing Table storage queries. The filter
208
208
`$filter=PartitionKey eq 'Sales' and LastName eq 'Smith'`.
209
209
* A *table scan* doesn't include the `PartitionKey`, and is inefficient because it searches all of the partitions that make up your table for any matching entities. It performs a table scan regardless of whether or not your filter uses the `RowKey`. For example:
210
210
`$filter=LastName eq 'Jones'`.
211
-
* Azure Table storage queries that return multiple entities sort them in `PartitionKey` and `RowKey` order. To avoid resorting the entities in the client, choose a `RowKey` that defines the most common sort order. Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table storage](faq.md#where-is-table-api-not-identical-with-azure-table-storage-behavior).
211
+
* Azure Table storage queries that return multiple entities sort them in `PartitionKey` and `RowKey` order. To avoid resorting the entities in the client, choose a `RowKey` that defines the most common sort order. Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table storage](table-api-faq.md#table-api-vs-table-storage).
212
212
213
213
Using an "**or**" to specify a filter based on `RowKey` values results in a partition scan, and isn't treated as a range query. Therefore, avoid queries that use filters such as:
214
214
`$filter=PartitionKey eq 'Sales' and (RowKey eq '121' or RowKey eq '322')`.
@@ -251,7 +251,7 @@ Many designs must meet requirements to enable lookup of entities based on multip
251
251
Table storage returns query results sorted in ascending order, based on `PartitionKey` and then by `RowKey`.
252
252
253
253
> [!NOTE]
254
-
> Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table storage](faq.md#where-is-table-api-not-identical-with-azure-table-storage-behavior).
254
+
> Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table storage](table-api-faq.md#table-api-vs-table-storage).
255
255
256
256
Keys in Table storage are string values. To ensure that numeric values sort correctly, you should convert them to a fixed length, and pad them with zeroes. For example, if the employee ID value you use as the `RowKey` is an integer value, you should convert employee ID **123** to **00000123**.
257
257
@@ -738,7 +738,7 @@ The following patterns and guidance might also be relevant when implementing thi
738
738
Retrieve the *n* entities most recently added to a partition by using a `RowKey` value that sorts in reverse date and time order.
739
739
740
740
> [!NOTE]
741
-
> Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. Thus, while this pattern is suitable for Table storage, it isn't suitable for Azure Cosmos DB. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table Storage](faq.md#where-is-table-api-not-identical-with-azure-table-storage-behavior).
741
+
> Query results returned by the Azure Table API in Azure Cosmos DB aren't sorted by partition key or row key. Thus, while this pattern is suitable for Table storage, it isn't suitable for Azure Cosmos DB. For a detailed list of feature differences, see [differences between Table API in Azure Cosmos DB and Azure Table Storage](table-api-faq.md#table-api-vs-table-storage).
742
742
743
743
#### Context and problem
744
744
A common requirement is to be able to retrieve the most recently created entities, for example the ten most recent expense claims submitted by an employee. Table queries support a `$top` query operation to return the first *n* entities from a set. There's no equivalent query operation to return the last *n* entities in a set.
Copy file name to clipboardExpand all lines: includes/storage-table-cosmos-db-tip-include.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,5 +6,5 @@ ms.date: 10/26/2018
6
6
ms.author: tamram
7
7
---
8
8
> [!TIP]
9
-
> The content in this article applies to the original Azure Table storage. However, there is now a premium offering for table storage: the Azure Cosmos DB Table API. This API offers throughput-optimized tables, global distribution, and automatic secondary indexes. There are some [feature differences between Table API in Azure Cosmos DB and Azure table storage](../articles/cosmos-db/faq.md#where-is-table-api-not-identical-with-azure-table-storage-behavior). For more information, and to try out the premium experience, see [Azure Cosmos DB Table API](https://aka.ms/premiumtables).
9
+
> The content in this article applies to the original Azure Table storage. However, there is now a premium offering for table storage: the Azure Cosmos DB Table API. This API offers throughput-optimized tables, global distribution, and automatic secondary indexes. There are some [feature differences between Table API in Azure Cosmos DB and Azure table storage](../articles/cosmos-db/table-api-faq.md#table-api-vs-table-storage). For more information, and to try out the premium experience, see [Azure Cosmos DB Table API](https://aka.ms/premiumtables).
0 commit comments