JS Party: JavaScript, CSS, Web Development cover image

The ORMazing show

JS Party: JavaScript, CSS, Web Development

CHAPTER

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

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.
App store bannerPlay store banner