steevej
(Steeve Juneau)
4
I completely missed the parts where you have mentioned that it was a view and that it has been working for 2 years.
Please share the indexes you have. I asked since it was working and now it is not, then may be during the server migration the index were not recreated. How many documents do you have in your collection?
As a workaround, it should be easy to write a JS script that update the view.