JS Party: JavaScript, CSS, Web Development cover image

The ORMazing show

JS Party: JavaScript, CSS, Web Development

00:00

How to Delay Flushes for Author Mutation

So do you delay flushes until after you respond to the user? Yes, right. The really neat thing there is like, if you touch 10 authors, it'll bash those into a save. So batch of saves and updates, just like it does loads. That is a very nice improvement. Yeah, right. But the other thing that em flushed us is run our books and our validation. It technically runs the hooks first, because since the hooks can run side effects, there might be other entities that it needs to then hook with. And so there's this kind of stepwise function where you handle like running hooks on anything that might have been loaded by your other hooks. Once all

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