I have six different values {string1, string2, .., string6}
.
I have to fetch all these values from MongoDB where I compare different conditions. On the basis of these six values I applied my logic.
I need to write an efficient and fast way to compare. Should I go for regex based search or should I compare six separate Boolean conditions Which method is best and why?
Note: I must compare these six values with my data.