Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0003136: The load summary page is slow because of unused joins to
sym_data
  • Loading branch information
chenson42 committed Jun 2, 2017
1 parent 7bc3516 commit b1c19a3
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -130,9 +130,7 @@ public OutgoingBatchServiceSqlMap(IDatabasePlatform platform,
"select b.load_id, b.node_id, b.status, b.create_by, max(error_flag) as error_flag, count(*) as cnt, min(b.create_time) as create_time, "
+ " max(b.last_update_time) as last_update_time, min(b.batch_id) as current_batch_id, "
+ " min(b.data_event_count) as current_data_event_count, b.channel_id "
+ "from $(outgoing_batch) b inner join "
+ " $(data_event) e on b.batch_id=e.batch_id inner join "
+ " $(data) d on d.data_id=e.data_id "
+ "from $(outgoing_batch) b "
+ " join $(channel) c on c.channel_id = b.channel_id "
+ "where c.reload_flag = 1 "
+ " and b.load_id > 0 "
Expand Down

0 comments on commit b1c19a3

Please sign in to comment.