lokesh-lingarajan commented on a change in pull request #11894:
URL: https://github.com/apache/druid/pull/11894#discussion_r752017835
##########
File path:
server/src/main/java/org/apache/druid/metadata/SQLMetadataConnector.java
##########
@@ -283,6 +283,11 @@ public void createSegmentTable(final String tableName)
"CREATE INDEX idx_%1$s_datasource_used_end ON %1$s(dataSource,
used, %2$send%2$s)",
tableName,
getQuoteString()
+ ),
+ StringUtils.format(
+ "CREATE INDEX idx_%1$s_datasource_used_start_end ON
%1$s(dataSource, used, start, %2$send%2$s)",
+ tableName,
+ getQuoteString()
Review comment:
@FrankChen021 - since the new index has "end" as the last column, may be
queries that rely only on (datasource, used, end) fields got slow enough to
induce ingestion lag in our environment. Since the symptoms were evident after
deleting the index with (datasource, used, end) columns, I feel we should have
both indexes. wdyt ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]