I have several arrays with approximately 100 possible values, i.e.:
a[0] = (a, b, c, d) a[1] = (a, e) a[2] = (d, f, g)
I want FASTLY to return which arrays contain (a || b) && & & (d || e)
in this example, 0 and 1
I was thinking about bitwise operations ... for example, representing "abcd" on "1111"; "announcement" to "1001", etc. Then I could solve “OR” with just a bitwise OR, and then check if both are nonzero
Can anyone think of a better solution? this is not very important, as it does not seem very escalable.
Is there any DBMS that can do this quickly? I tried with mongodb, but it seems that they have not added the $ function yet and (doc says this in version 1.9.1, but I can only load 1.9.0, and this is still unstable)
I guess a “logical search” is similar to what google does all the time ... so I guess there is a better way (maybe not so fast, but more escalated) than
Lem0n
source share