JS Party: JavaScript, CSS, Web Development cover image

The ORMazing show

JS Party: JavaScript, CSS, Web Development

00:00

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.

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