re: Preventing Useless Database Hits VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Nice post 😊 I didn't know about none. I wonder why AR queries the db with 1=0 instead of doing whatever .none does 🤔
 

Right? I went into the AR source code one weekend and tried to update it in such a way that none would be used when it saw an empty array. Broke a lot of specs and after 3 hours of trying to fix them I gave up. One day I will go back!

 

I feel that, lol. So vindicating when you finally get it after numerous independent attempts!

code of conduct - report abuse