Skip to content

Commit c37370d

Browse files
authored
docs: recipes cleanup (#10706)
* docs: add share-of-total recipe with calculated fields and multi-stage measures Adds a new recipe explaining two approaches to share-of-total calculations: - calculated fields (% of total) for ad-hoc workbook exploration - multi-stage measures with Tesseract (group_by: []) for reusable semantic model metrics Also adds a cursor rule pinning the ecommerce demo as the canonical example data model. Made-with: Cursor * cleanup * docs: update pricing and product tier references - Removed mentions of the "Enterprise Premier" plan across multiple documents, replacing them with "Enterprise" where applicable. - Cleaned up the recipes section by removing references to funnels and XIRR, which are now hidden. - Adjusted the number of recipes listed in the index to reflect recent changes. This update ensures consistency in product tier naming and improves the clarity of the documentation.
1 parent 292ba13 commit c37370d

30 files changed

Lines changed: 636 additions & 433 deletions
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
description: Canonical data model to use as the basis for all documentation examples
3+
globs: docs-mintlify/**
4+
alwaysApply: false
5+
---
6+
7+
# Canonical Example Data Model
8+
9+
All documentation examples and recipes must use the [ecommerce demo data model](https://github.com/cubedevinc/ecommerce_demo) as their basis unless the topic genuinely requires a different domain.
10+
11+
## Cubes
12+
13+
### `order_items` (fact, `ECOMMERCE.ORDER_ITEMS`)
14+
The primary fact table. Use this as the starting point for most examples.
15+
16+
Key fields:
17+
- `id` — primary key
18+
- `order_id`, `user_id`, `product_id`, `inventory_item_id` — foreign keys
19+
- `status` (string) — `complete`, `processing`, `shipped`, `cancelled`, `returned`
20+
- `sale_price` (number) — revenue per line item; measure `total_sale_price` (sum, currency)
21+
- `created_at`, `shipped_at`, `delivered_at`, `returned_at` (time)
22+
- `is_delivered` (boolean)
23+
- measures: `count`, `order_count` (count_distinct on order_id), `total_sale_price`
24+
25+
### `orders` (`ECOMMERCE.ORDERS`)
26+
Order-level table. Use when examples are about order status or counts.
27+
28+
Key fields:
29+
- `order_id` — primary key
30+
- `user_id`, `status`, `gender`, `num_of_item`
31+
- `created_at`, `delivered_at`, `shipped_at` (time)
32+
- measures: `count`
33+
34+
### `products` (`ECOMMERCE.PRODUCTS`)
35+
Product catalog. Use when examples need brand, category, or product dimensions.
36+
37+
Key fields:
38+
- `id` — primary key
39+
- `brand`, `category`, `department`, `name`, `sku`
40+
- `cost`, `retail_price` (number)
41+
- measures: `count`
42+
43+
### `users` (`ECOMMERCE.USERS`)
44+
Customer table. Use when examples need demographic or geographic dimensions.
45+
46+
Key fields:
47+
- `id` — primary key
48+
- `first_name`, `last_name`, `full_name`, `email`
49+
- `age`, `gender`
50+
- `city`, `state`, `country`
51+
- `traffic_source`
52+
- `created_at` (time)
53+
- measures: `count`
54+
55+
## Common example patterns
56+
57+
**Revenue over time** → `order_items.total_sale_price` + `order_items.created_at`
58+
59+
**Orders by status** → `order_items.count` + `order_items.status`
60+
61+
**Revenue by brand/category** → `order_items.total_sale_price` joined to `products.brand` / `products.category`
62+
63+
**User demographics** → `users.count` + `users.city` / `users.country` / `users.traffic_source`
64+
65+
**Multi-cube join** → `order_items` joins `orders`, `products`, `users` via foreign keys defined in the repo
66+
67+
## Reference
68+
69+
Full model: https://github.com/cubedevinc/ecommerce_demo

docs-mintlify/admin/account-billing/pricing.mdx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ subscription:
3030
card, and start using Cube Cloud right away. [Starter](#starter) and [Premium](#premium)
3131
product tiers are available on the on-demand payment plan.
3232
* _Commit payment plan_ allows you to have a contract with a CCU amount specified
33-
in an order form. [Premium](#premium), [Enterprise](#enterprise), and
34-
[Enterprise Premier](#enterprise-premier) product tiers are available on the
33+
in an order form. [Premium](#premium) and [Enterprise](#enterprise) product tiers are available on the
3534
commit payment plan. [Contact us][link-contact-us] to learn more.
3635

3736
## Product tiers
@@ -84,18 +83,6 @@ control][ref-cloud-acl]. Cube Cloud provides a 99.99% uptime SLA for this produc
8483
You can review its [pricing][cube-pricing], [support
8584
terms][ref-enterprise-tier-support], and [limits][ref-cloud-limits].
8685

87-
### Enterprise Premier
88-
89-
**Enterprise Premier product tier caters to high-scale, high-availability
90-
mission-critical production deployments with security and compliance needs.**
91-
92-
It offers everything in the [Enterprise product tier](#enterprise) as well as
93-
unlimited pre-aggregation sizes, and support for kSQL and Elasticsearch. Cube
94-
Cloud provides a 99.995% uptime SLA for this product tier.
95-
96-
You can review its [pricing][cube-pricing], [support
97-
terms][ref-enterprise-premier-tier-support], and [limits][ref-cloud-limits].
98-
9986
## Resources
10087

10188
The following resource types incur CCU consumption and apply to _individual resources_
@@ -354,7 +341,6 @@ for the AI token consumption at the **Billing** page of their Cube Cloud account
354341
[ref-starter-tier-support]: /docs/deployment/cloud/support#starter
355342
[ref-premium-tier-support]: /docs/deployment/cloud/support#premium
356343
[ref-enterprise-tier-support]: /docs/deployment/cloud/support#enterprise
357-
[ref-enterprise-premier-tier-support]: /docs/deployment/cloud/support#enterprise-premier
358344
[ref-query-history]: /admin/monitoring/query-history
359345
[ref-performance-insights]: /admin/monitoring/performance
360346
[ref-audit-log]: /admin/monitoring/audit-log

docs-mintlify/admin/account-billing/support.mdx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,6 @@ response times as compared to the [Premium product tier](#premium-support).
6060
who will provide quarterly reviews, sharing new features and training as well
6161
as usage and optimization advice.
6262

63-
### Enterprise Premier
64-
65-
* [Enterprise Premier product tier][ref-enterprise-premier-tier] includes support via **online resources** such as
66-
[documentation][ref-docs-intro], [webinars][cube-webinars], and [community
67-
Slack][cube-slack].
68-
* It also includes **unlimited support tickets** for our support engineers during
69-
[support hours](#support-hours) through our in-product chat with faster
70-
response times as compared to the [Enterprise product tier](#enterprise-support).
71-
72-
| Priority | Response time during support hours |
73-
| -------- | ---------------------------------- |
74-
| P0 | 15 minutes |
75-
| P1 | 1 hour |
76-
| P2 | 8 business hours |
77-
| P3 | 2 business days |
78-
79-
* Enterprise Premier product tier also includes a **dedicated customer success manager** (CSM)
80-
who will provide quarterly reviews, sharing new features and training as well
81-
as usage and optimization advice.
8263

8364
## Support hours
8465

@@ -114,5 +95,4 @@ We prioritize support requests based on their severity, as follows:
11495
[ref-free-tier]: /admin/account-billing/pricing#free
11596
[ref-starter-tier]: /admin/account-billing/pricing#starter
11697
[ref-premium-tier]: /admin/account-billing/pricing#premium
117-
[ref-enterprise-tier]: /admin/account-billing/pricing#enterprise
118-
[ref-enterprise-premier-tier]: /admin/account-billing/pricing#enterprise-premier
98+
[ref-enterprise-tier]: /admin/account-billing/pricing#enterprise

docs-mintlify/admin/connect-to-data/data-sources/ksqldb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ applications, ingesting data from [Apache Kafka](https://kafka.apache.org).
88

99
<Info>
1010

11-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
11+
Available on the [Enterprise plan](https://cube.dev/pricing).
1212
[Contact us](https://cube.dev/contact) for details.
1313

1414
</Info>

docs-mintlify/admin/connect-to-data/data-sources/ms-fabric.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data warehouse.
99

1010
<Info>
1111

12-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
12+
Available on the [Enterprise plan](https://cube.dev/pricing).
1313
[Contact us](https://cube.dev/contact) for details.
1414

1515
</Info>

docs-mintlify/admin/connect-to-data/data-sources/singlestore.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ high-throughput transactions (inserts and upserts) and low-latency analytics.
88

99
<Info>
1010

11-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
11+
Available on the [Enterprise plan](https://cube.dev/pricing).
1212
[Contact us](https://cube.dev/contact) for details.
1313

1414
</Info>

docs-mintlify/admin/deployment/byoc/aws/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ the customer infrastructure on AWS and managed by the Cube Cloud Control Plane v
1111

1212
<Info>
1313

14-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
14+
Available on the [Enterprise plan](https://cube.dev/pricing).
1515
[Contact us](https://cube.dev/contact) for details.
1616

1717
</Info>

docs-mintlify/admin/deployment/byoc/aws/privatelink.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Cube Cloud BYOC deployments on AWS support private connectivity for Cube API end
88

99
<Info>
1010

11-
Available on the [Enterprise Premier plan](https://cube.dev/pricing) with BYOC deployments.
11+
Available on the [Enterprise plan](https://cube.dev/pricing) with BYOC deployments.
1212
[Contact us](https://cube.dev/contact) for details.
1313

1414
</Info>

docs-mintlify/admin/deployment/byoc/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on a platform of choice (AWS/Azure/GCP) and managed by the Cube Cloud Control Pl
1010

1111
<Info>
1212

13-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
13+
Available on the [Enterprise plan](https://cube.dev/pricing).
1414
[Contact us](https://cube.dev/contact) for details.
1515

1616
</Info>

docs-mintlify/admin/deployment/encryption-keys.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "The Encryption Keys page in Cube Cloud allows to manage data-at-re
55

66
<Info>
77

8-
Available on the [Enterprise Premier plan](https://cube.dev/pricing).
8+
Available on the [Enterprise plan](https://cube.dev/pricing).
99
Also requires the M [Cube Store Worker tier](/admin/account-billing/pricing#cube-store-worker-tiers).
1010

1111
</Info>

0 commit comments

Comments
 (0)