You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/11/15 22:12:28 UTC

[GitHub] [druid] lokesh-lingarajan commented on a change in pull request #11894: Creating an index based on druid_segments(datasource, used, start, end)

lokesh-lingarajan commented on a change in pull request #11894:
URL: https://github.com/apache/druid/pull/11894#discussion_r749720322



##########
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:
       We did that in production 2 weeks back on the same thesis, but quickly ingestion lag started going up and we had to recreate the index with (datasource, used, end) again to fix it. There is some dependency which we did not investigate further. 




-- 
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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org