Hi there
Following the syntax for search filters, I wanted to know if one of the following ways was recommended/had better performance, given the two produced the same results:
option a (nesting the any
clause within the all
root clause):
filters: {
all: [
{company: "c1"},
{
any: [
{a: ["a1", ...]},
{b: ["b2", ...]},
{c: ["c1", ...]},
{d: ["d1", ...]},
{e: ["e1", ...]},
{f: ["f1", ...]},
{g: ["g1", ...]},
{h: ["h1", ...]},
]
}
],
}
vs
option B (without nesting):
filters: {
all: [
{company: "c1"}
],
any: [
{a: ["a1", ...]},
{b: ["b2", ...]},
{c: ["c1", ...]},
{d: ["d1", ...]},
{e: ["e1", ...]},
{f: ["f1", ...]},
{g: ["g1", ...]},
{h: ["h1", ...]},
]
}
Thanks in advance.