当与非优化条件进行 AND 操作时,会从过滤器索引中删除可索引的 `IN`/`OR` 连接子
作者: whygee-dev创建于 2026年7月28日更新于 2026年7月28日
defp optimise_where(%Func{name: "and", args: [left, right]}) do case {optimise_where(left), optimise_where(right)} do %{operation: } = optimisation, _ -> # index left, residualise right {, %{operation: _} = optimisation} -> # index right, residualise left _ -> :not_optimised end end
内容来源: electric-sql/electric