My Experience with exists?, any?, and present?

A few weeks ago, I encountered a problem, which I think, really really weird!

How weird was that?

So, I have some tables with one to many relationship, let’s say table articles has many images and images has many image_sizes (the tables are different with the actual case). The system has a job that executes codes fetching Article load it eagerly with Image and ImageSize. We thought it was safe, since there were no complicated process at all. Just load at print it!

After a while, booooom! We had 500 in production……. Continue reading “My Experience with exists?, any?, and present?