faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
alexherbo26 has joined #amber
alexherbo2 has quit [Ping timeout: 272 seconds]
alexherbo26 has quit [Ping timeout: 240 seconds]
confact has quit [Ping timeout: 240 seconds]
confact has joined #amber
alexherbo2 has joined #amber
<FromGitter> <ikaru5> Hi there! Using granite I have a lot of Selects firing to DB if I do ⏎ ⏎ ```List.all.each do |list| ⏎ list.items.each do |item| ⏎ puts item.name ⏎ #...``` ⏎ ⏎ Can I make just one call to DB like includes in Rails? [https://gitter.im/amberframework/amber?at=5f6494be3651184d30fb7f9c]
<FromGitter> <Blacksmoke16> idt
<FromGitter> <Blacksmoke16> could do like `Items.all` then build out a map of `list.id => items`, and do same idea with items, select them all, map id to name, then use that hash
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo2 has joined #amber
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]