Skip to content

Commit d9a0c7e

Browse files
committed
Add columnstore variables to README
1 parent a976895 commit d9a0c7e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,22 @@ Schema::create('table', function (Blueprint $table) {
195195

196196
```
197197

198+
### Sort Keys - Columnstore variables
199+
200+
Sometimes you may want to customize your [columstore variables](https://docs.singlestore.com/managed-service/en/create-a-database/physical-database-schema-design/procedures-for-physical-database-schema-design/configuring-the-columnstore-to-work-effectively.html) individually per table. You can do it by appending `with` fluently to the `sortKey` definition.
201+
202+
```php
203+
Schema::create('table', function (Blueprint $table) {
204+
$table->string('name');
205+
206+
$table->sortKey('name')->with(['columnstore_segment_rows' => 100000]);
207+
});
208+
209+
Schema::create('table', function (Blueprint $table) {
210+
$table->string('name')->sortKey()->with(['columnstore_segment_rows' => 100000]);
211+
});
212+
```
213+
198214
### Series Timestamps
199215
To denote a column as a series timestamp, use the `seriesTimestamp` column modifier.
200216

0 commit comments

Comments
 (0)