I was trying to optimize a query and found that the plan had table spool(eager) in it. But when I ran it on another server which had much more memory(256GB compared to 64GB) than the other one the operator was gone and the query was much faster.
So I am wondering if that memory is even the cause of the plan change which I see ie is it even a plausible theory?
volume of Data is the same.