Skip to content

Commit 160c2ba

Browse files
authored
fix: replace unsupported MATERIALIZED VIEW with AGGREGATING INDEX (#2741)
- Replace CREATE MATERIALIZED VIEW syntax with CREATE AGGREGATING INDEX - Update Advanced Optimization section to use Databend's native aggregating index feature - Ensure documentation accurately reflects supported functionality
1 parent 1358866 commit 160c2ba

File tree

1 file changed

+3
-3
lines changed
  • docs/en/guides/54-query/03-optimization

1 file changed

+3
-3
lines changed

docs/en/guides/54-query/03-optimization/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ LIMIT 10;
171171

172172
## Advanced Optimization
173173

174-
### Materialized Views
174+
### Aggregating Indexes
175175
```sql
176-
-- Pre-compute expensive aggregations
177-
CREATE MATERIALIZED VIEW daily_sales AS
176+
-- Pre-compute expensive aggregations using Databend's aggregating indexes
177+
CREATE AGGREGATING INDEX daily_sales_agg AS
178178
SELECT
179179
DATE(order_time) as order_date,
180180
product_id,

0 commit comments

Comments
 (0)