JS Party: JavaScript, CSS, Web Development cover image

The ORMazing show

JS Party: JavaScript, CSS, Web Development

00:00

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

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app