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 2018/09/20 02:57:04 UTC

[GitHub] QiuMM commented on a change in pull request #6348: Add metadata indexes to help with segment allocation.

QiuMM commented on a change in pull request #6348: Add metadata indexes to help with segment allocation.
URL: https://github.com/apache/incubator-druid/pull/6348#discussion_r219021628
 
 

 ##########
 File path: server/src/main/java/org/apache/druid/metadata/SQLMetadataConnector.java
 ##########
 @@ -259,8 +264,15 @@ public void createSegmentTable(final String tableName)
                 + ")",
                 tableName, getPayloadType(), getQuoteString()
             ),
-            StringUtils.format("CREATE INDEX idx_%1$s_datasource ON %1$s(dataSource)", tableName),
-            StringUtils.format("CREATE INDEX idx_%1$s_used ON %1$s(used)", tableName)
+            StringUtils.format(
+                "CREATE INDEX idx_%1$s_datasource_end ON %1$s(dataSource, %2$send%2$s)",
+                tableName,
+                getQuoteString()
+            ),
+            StringUtils.format(
+                "CREATE INDEX idx_%1$s_datasource_sequence ON %1$s(dataSource, sequence_name)",
 
 Review comment:
   @gianm sorry,  I did not review these code carefully. There are no `sequence_name ` of `segmentTable`, `pendingSegmentsTable` does...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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