首页 > TAG信息列表 > ConditionX
千万级数据多条件联合查询优化
背景 某表内包含千万条记录, 现需要按照多条件进行筛选, SQL如下 SELECT * FROM t_table WHERE 1 = 1 AND Condition1 AND Condition2 AND Condition3 AND Condition4 AND Condition5 AND Condition6 ... AND ConditionN ORDER BY ... DESC ... LIMIT ..., ...; 其中每个条件Cond