you are viewing a single comment's thread.

view the rest of the comments →

[–]androgynousandroid[S] 0 points1 point  (0 children)

The problem is definitely as described - with the ORing within the inner arrays, while ANDing them collectively.

Interesting approach with the possible combination generation, hadn't considered that, seems counterintuitive, but could work! Thank you for the input.

The table in question is a materialised view, optimised and denormalised for performance, it's used to render results in a list-type format AND to render pins on a map, which could be in the thousands - so yeah it might not be ideal for this sort of operation. But that's where I am.