Skip to content

Commit 458ae32

Browse files
authored
Merge pull request #226729 from seesharprun/cosmos-cassandra-metrics-mv-faq
Cosmos DB | Added materialized view metrics screenshots
2 parents 6b65df1 + 8aabb6f commit 458ae32

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

articles/cosmos-db/cassandra/TOC.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@
264264
- name: Preventing rate-limiting errors
265265
href: prevent-rate-limiting-errors.md
266266
- name: Materialized View (Preview)
267-
href: materialized-views.md
267+
items:
268+
- name: Overview
269+
href: materialized-views.md
270+
- name: FAQ
271+
href: materialized-views-faq.yml
268272
- name: Lightweight Transactions in API for Apache Cassandra
269273
href: lightweight-transactions.md
270274
- name: Change feed for API for Apache Cassandra

articles/cosmos-db/cassandra/materialized-views-faq.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
ms.service: cosmos-db
99
ms.subservice: apache-cassandra
1010
ms.topic: faq
11-
ms.date: 11/17/2022
11+
ms.date: 02/08/2023
1212
title: Frequently asked questions on materialized views in Azure Cosmos DB for Apache Cassandra (preview)
1313
summary: |
1414
[!INCLUDE[Cassandra](../includes/appliesto-cassandra.md)]
@@ -24,19 +24,19 @@ sections:
2424
- Filtering rows from a base table in the materialized view based on conditions evaluated on primary key columns of the base table row.
2525
- Filters supported include: equalities, inequalities, and contains.
2626
- question: |
27-
What consistency levels will be supported with materialized views in Azure Cosmos DB for Apache Cassandra?
27+
What consistency levels are supported with materialized views in Azure Cosmos DB for Apache Cassandra?
2828
answer: |
2929
Only eventual consistency is guaranteed on the materialized view. You may read stale rows when compared to data on base table due to retrying some operations on materialized views.
3030
3131
You can scale up or scale down the materialized view builder layer depending on your latency requirements for the view to be consistent with base table.
3232
- question: |
33-
Will there be an autoscale layer for the materialized view builder instances in Azure Cosmos DB for Apache Cassandra?
33+
Is there an autoscale layer for the materialized view builder instances in Azure Cosmos DB for Apache Cassandra?
3434
answer: |
3535
Autoscaling for the materialized view builder isn't available right now. The materialized view builder instances can be manually scaled by modifying the instance count or size.
3636
- question: |
3737
What type of time to live (TTL) support do we have with materialized views in Azure Cosmos DB for Apache Cassandra?
3838
answer: |
39-
Time to live (TTL) from base table rows will be applied on the matching row in the materialized view. Setting table-level TTL on materialized views is currently not allowed.
39+
Time to live (TTL) from base table rows is applied on the matching row in the materialized view. Setting table-level TTL on materialized views is currently not allowed.
4040
- question: |
4141
How can we troubleshoot materialized views that aren't up to date in Azure Cosmos DB for Apache Cassandra?
4242
answer: |
@@ -47,13 +47,17 @@ sections:
4747
The following metrics are available:
4848
4949
- **Max Materialized View Catchup Gap in Minutes**: The value `t` indicates rows written to base table in last `t` minutes that are yet to be propagated to the materialized view.
50+
:::image type="content" source="media/materialized-views-faq/catchup-metrics.png" lightbox="media/materialized-views-faq/catchup-metrics.png" alt-text="Screenshot of the Catchup metrics for materialized views in Azure Cosmos DB for Apache Cassandra.":::
5051
- **Read change feed cost**: Request units consumed on the base table to read data for the materialized view.
52+
:::image type="content" source="media/materialized-views-faq/cpu-usage-metrics.png" lightbox="media/materialized-views-faq/cpu-usage-metrics.png" alt-text="Screenshot of the CPU Usage metrics for materialized views in Azure Cosmos DB for Apache Cassandra.":::
5153
- **Write cost**: Request units consumed on the materialized view to transform and persist data that was read from the base table.
54+
:::image type="content" source="media/materialized-views-faq/max-cpu-metrics.png" lightbox="media/materialized-views-faq/max-cpu-metrics.png" alt-text="Screenshot of the Memory metrics for materialized views in Azure Cosmos DB for Apache Cassandra.":::
5255
- Other metrics related to typical resource consumption on materialized view builders. These metrics include **CPU** and **memory usage**.
56+
:::image type="content" source="media/materialized-views-faq/memory-metrics.png" lightbox="media/materialized-views-faq/memory-metrics.png" alt-text="Screenshot of the Max CPU metrics for materialized views in Azure Cosmos DB for Apache Cassandra.":::
5357
- question: |
5458
What are the restore options available for materialized views in Azure Cosmos DB for Apache Cassandra?
5559
answer: |
56-
Materialized views can't be restored. Hence, thee views will need to be recreated once the base table is restored.
60+
Materialized views can't be restored. Hence, thee views need to be recreated once the base table is restored.
5761
- question: |
5862
Can you create more than one materialized view on a single base table in Azure Cosmos DB for Apache Cassandra?
5963
answer: |
@@ -65,7 +69,7 @@ sections:
6569
- question: |
6670
Can we add or remove columns on the base table once a materialized view is defined in Azure Cosmos DB for Apache Cassandra?
6771
answer: |
68-
You'll be able to add a column to the base table, but you can't remove a column. After a materialized view is created against a base table, `ALTER TABLE ADD`` operations aren't allowed on the base table. `ALTER TABLE ADD` operations are only allowed if none of the views have selected `*`` in their definition.
72+
You're able to add a column to the base table, but you can't remove a column. After a materialized view is created against a base table, `ALTER TABLE ADD`` operations aren't allowed on the base table. `ALTER TABLE ADD` operations are only allowed if none of the views have selected `*`` in their definition.
6973
7074
Apache Cassandra doesn't support dropping columns on the base table if it has a materialized view defined on it.
7175
- question: |
@@ -77,14 +81,14 @@ sections:
7781
7882
To use materialized views, create a new table after the feature is enabled.
7983
- question: |
80-
What are the conditions on which records won't make it to a materialized view in Azure Cosmos DB for Apache Cassandra?
84+
What conditions can cause records to not make it to a materialized view in Azure Cosmos DB for Apache Cassandra?
8185
answer: |
82-
Below are some of the identified cases where data from a base table can't be written to materialized view as they violate known constraints on a materialized view table:
86+
Here are some of the identified cases where data from a base table can't be written to materialized view as they violate known constraints on a materialized view table:
8387
8488
- Rows that don't satisfy partition key size (2 kb) limit in the materialized views
8589
- Rows that don't satisfy clustering key size (1 kb) limit in materialized views
8690
87-
Currently, the builder will drop these rows.
91+
Currently, the builder drops these rows.
8892
- question: |
8993
Can we use materialized views with customer-managed keys in Azure Cosmos DB for Apache Cassandra?
9094
answer: |
132 KB
Loading
110 KB
Loading
120 KB
Loading
110 KB
Loading

0 commit comments

Comments
 (0)