-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Better index for segments and pendingSegments table #4936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -230,7 +230,8 @@ public void createPendingSegmentsTable(final String tableName) | |
| + " UNIQUE (sequence_name_prev_id_sha1)\n" | ||
| + ")", | ||
| tableName, getPayloadType(), getQuoteString() | ||
| ) | ||
| ), | ||
| StringUtils.format("CREATE INDEX idx_%1$s_sequence_name ON %1$s(sequence_name)", tableName) | ||
| ) | ||
| ); | ||
| } | ||
|
|
@@ -274,8 +275,7 @@ public void createSegmentTable(final String tableName) | |
| + ")", | ||
| tableName, getPayloadType(), getQuoteString() | ||
| ), | ||
| StringUtils.format("CREATE INDEX idx_%1$s_datasource ON %1$s(dataSource)", tableName), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why these indexes are removed?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The index for |
||
| StringUtils.format("CREATE INDEX idx_%1$s_used ON %1$s(used)", tableName) | ||
| StringUtils.format("CREATE INDEX idx_%1$s_datasource_used_time ON %1$s(dataSource,used,start,end)", tableName) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
| ) | ||
| ); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%sand two arguments:tableName, tableName?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yunjing could you fix?