mirror of https://github.com/apache/druid.git
This commit is contained in:
parent
0ffdbaa6eb
commit
a939dd44fc
|
@ -47,7 +47,7 @@ You can specify the following optional properties:
|
|||
|
||||
For example:
|
||||
|
||||
```
|
||||
```json
|
||||
"tuningConfig": {
|
||||
"indexSpec": {
|
||||
"stringDictionaryEncoding": {
|
||||
|
@ -59,6 +59,39 @@ For example:
|
|||
}
|
||||
```
|
||||
|
||||
For SQL based ingestion, you can add the `indexSpec` to your query context.
|
||||
In the Web Console, select *Edit context* from the context from the *Engine:* menu and enter the `indexSpec`. For example:
|
||||
|
||||
```json
|
||||
{
|
||||
...
|
||||
"indexSpec": {
|
||||
"stringDictionaryEncoding": {
|
||||
"type": "frontCoded",
|
||||
"bucketSize": 4,
|
||||
"formatVersion": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
For API calls to the SQL-based ingestion API, include the `indexSpec` in the context in the request payload. For example:
|
||||
|
||||
```json
|
||||
{
|
||||
"query": ...
|
||||
"context": {
|
||||
"maxNumTasks": 3
|
||||
"indexSpec": {
|
||||
"stringDictionaryEncoding": {
|
||||
"type": "frontCoded",
|
||||
"bucketSize": 4,
|
||||
"formatVersion": 1}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Upgrade from Druid 25.0.0
|
||||
|
||||
Druid 26.0.0 introduced a new version of the front-coded dictionary, version 1, offering typically faster read speeds and smaller storage sizes.
|
||||
|
|
Loading…
Reference in New Issue