You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/10/18 01:54:56 UTC

[GitHub] [inlong] healchow commented on a diff in pull request #6168: [INLONG-6151][Manager] Add optional data cleansing task to control storage size, optimize query indexes

healchow commented on code in PR #6168:
URL: https://github.com/apache/inlong/pull/6168#discussion_r997644841


##########
inlong-manager/manager-web/sql/apache_inlong_manager.sql:
##########
@@ -338,7 +344,7 @@ CREATE TABLE IF NOT EXISTS `inlong_stream_field`
     `rank_num`            smallint(6)  DEFAULT '0' COMMENT 'Field order (front-end display field order)',
     `is_deleted`          int(11)      DEFAULT '0' COMMENT 'Whether to delete, 0: not deleted, > 0: deleted',
     PRIMARY KEY (`id`),
-    KEY `field_stream_id_index` (`inlong_stream_id`)
+    KEY `group_field_index` (`inlong_group_id`, `inlong_stream_id`)

Review Comment:
   Suggest changing the `KEY` to `INDEX`, because some DBMS will not add an index for KEY.



-- 
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@inlong.apache.org

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