Skip to content

Commit 11ecc28

Browse files
Blargiandhtclk
andauthored
Apply suggestions from code review
Co-authored-by: Dominic Tran <[email protected]>
1 parent 7b619ea commit 11ecc28

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/guides/developer/stored-procedures-and-prepared-statements.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ ClickHouse is optimized for:
2727
- **Batch processing** - Handling large data volumes efficiently
2828
- **Declarative queries** - SQL queries that describe what data to retrieve, not how to process it
2929

30-
Stored procedures with procedural logic work against these optimizations.
31-
Instead, ClickHouse provides alternatives that align with its strengths.
30+
Stored procedures with procedural logic work against these optimizations. Instead, ClickHouse provides alternatives that align with its strengths.
3231

3332
### User-Defined Functions (UDFs) {#user-defined-functions}
3433

@@ -197,7 +196,7 @@ FROM sales_by_date(start_date='2024-01-01', end_date='2024-01-31')
197196
WHERE product_id = 12345;
198197
```
199198

200-
**Common use cases:**
199+
#### Common use cases {#common-use-cases}
201200
- Dynamic date range filtering
202201
- User-specific data slicing
203202
- [Multi-tenant data access](/cloud/bestpractices/multi-tenancy)
@@ -559,7 +558,7 @@ print(f"Status: {status}, Loyalty Points: {points}")
559558

560559
<br/>
561560

562-
**Key differences:**
561+
#### Key differences {#key-differences}
563562

564563
1. **Control flow** - MySQL stored procedure uses `IF/ELSE`, `WHILE` loops. In ClickHouse, implement this logic in your application code (Python, Java, etc.)
565564
2. **Transactions** - MySQL supports `BEGIN/COMMIT/ROLLBACK` for ACID transactions. ClickHouse is an analytical database optimized for append-only workloads, not transactional updates

0 commit comments

Comments
 (0)