Skip to content

Commit

Permalink
Merge pull request #403 from github291406933/master
Browse files Browse the repository at this point in the history
fix: 修复多字段参与join时,没有命中缓存而出现的1+N查询性能问题
  • Loading branch information
TommyLemon authored Jun 6, 2022
2 parents c041000 + 3ed76c3 commit 1f0af2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions APIJSONORM/src/main/java/apijson/orm/AbstractSQLExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -519,6 +520,7 @@ else if (config.isClickHouse() && (sqlTable.startsWith("`") || sqlTable.startsWi
if (viceConfig != null) { //FIXME 只有和主表关联才能用 item,否则应该从 childMap 查其它副表数据
List<On> onList = curJoin.getOnList();
if (onList != null) {
Collections.reverse(onList);
for (On on : onList) {
if (on != null) {
String ok = on.getOriginKey();
Expand Down

0 comments on commit 1f0af2d

Please sign in to comment.