caiconghui commented on a change in pull request #3815: URL: https://github.com/apache/incubator-doris/pull/3815#discussion_r438057994
########## File path: fe/src/main/java/org/apache/doris/master/ReportHandler.java ########## @@ -388,21 +389,26 @@ private static void sync(Map<Long, TTablet> backendTablets, ListMultimap<Long, L List<Long> tabletIds = tabletSyncMap.get(dbId); LOG.info("before sync tablets in db[{}]. report num: {}. backend[{}]", dbId, tabletIds.size(), backendId); - - for (Long tabletId : tabletIds) { - long tableId = invertedIndex.getTableId(tabletId); + List<TabletMeta> tabletMetaList = invertedIndex.getTabletMetaList(tabletIds); Review comment: cost for getting a list of size for 1000000 from map is about 40 ~ 50ms, here we only process tablets in one be and which need to sync, so i think 1000000 for testing is large enough ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org