mirror of https://github.com/apache/druid.git
Modifying index from druid_segments(datasource, used, end) to druid_segments(datasource, used, end, start) to support kill task (#11894)
This index helps in faster query results during kill task's query on interval based unused segment listing. This can become a bottleneck in some production loads causing coordinator to wait longer for metadata db replies and impacting Kafka ingestion. The modified index has helped reduce the query times for such queries.
This commit is contained in:
parent
0cc998d8a1
commit
60a3a802b6
|
@ -280,7 +280,7 @@ public abstract class SQLMetadataConnector implements MetadataStorageConnector
|
|||
),
|
||||
StringUtils.format("CREATE INDEX idx_%1$s_used ON %1$s(used)", tableName),
|
||||
StringUtils.format(
|
||||
"CREATE INDEX idx_%1$s_datasource_used_end ON %1$s(dataSource, used, %2$send%2$s)",
|
||||
"CREATE INDEX idx_%1$s_datasource_used_end_start ON %1$s(dataSource, used, %2$send%2$s, start)",
|
||||
tableName,
|
||||
getQuoteString()
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue