Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Feature Request: Support unions and intersections of sets together #444
To emulate something like MySQL And / Or conditions - I build indexes using sets and sorted sets. But I can only do intersections and unions but not combine them. To do both intersections and unions, I have to factor them out into unions and intersections and combine in the application code.
I could have stored the intermediate results in redis through sunionstore and sinterstore and then done a sunion using the intermediate results but for simple gets storing intermediate sets and then cleaning them up is kind of messy, especially with multiple threads. I guess when LUA scripting comes in I would not have to pay the price of having all this data flow back to my application layer, but it seems like a general syntax to support unions and intersections together would be useful.