JS Party: JavaScript, CSS, Web Development cover image

The ORMazing show

JS Party: JavaScript, CSS, Web Development

CHAPTER

How to Use Active Record to Load a Set of Queries

Data lures lets you multiplex a set of queries into a single query that goes over the wire and then demultiplex that data back out to all the requesters that asked for it. With Joyce, you don't actually need to use populate hint. So as far as I understand with rails in your example, if you knew your business logic was going to like, you know, I have an author and I'm going to go through all the books... You're saying one giant query to like join in all three levels of data, or you can do like one query per level. Exactly.

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