
The ORMazing show
JS Party: JavaScript, CSS, Web Development
How to Make Sure There Are No Cycles When Batching
How do you make sure there are no cycles if you're allowing, you know, sort of these hooks to update things and generate hooks? I mean, I could write code that creates a cycle. So we just keep track of the entities that we grand hooks on before, right? The first iteration of the loop is like, Oh, I ran it on these five entities, put them in the like hooks has already ran, never run them again. And okay, go on to my next, discover any new entities. If there are new entities, run that on the second iteration,. But yeah, it's an explicit call to T and flush. It's not like put on the event
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.