Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【2018/04/12 Otemachi.rb#5】has_one :throughの憂鬱
Search
Shu OGAWARA
April 12, 2018
Technology
0
350
【2018/04/12 Otemachi.rb#5】has_one :throughの憂鬱
2018/04/12 Otemachi.rb#5での発表資料です。
Shu OGAWARA
April 12, 2018
Tweet
Share
More Decks by Shu OGAWARA
See All by Shu OGAWARA
エンジニアリングマネージャーはどう学んでいくのか #devsumi / How Do Engineering Managers Continue to Learn and Grow?
expajp
5
2k
RubyKaigi参加歴をふりかえる / Looking Back on My RubyKaigi Participation History #kaigieffectLT
expajp
3
350
わたしのメタ学習 / My Own Meta Learning #shinjukurb
expajp
0
320
ActiveSupport::Concernで開くメタプログラミングの扉 #heiseirubykaigi / The door of meta-programing is opened by ActiveSupport::Concern
expajp
1
2.1k
実践Railsアプリケーション設計 #meetup_rails / Practical Rails Application Design
expajp
4
38k
【2019/07/06 TamaRuby会議01】brainf*ck処理系で理解するパターンマッチングをつかった疎結合な実装
expajp
2
2.6k
その正規表現、異議あり! 〜 ReDoSについて
expajp
2
5.2k
【2018/12/08 RailsDM】「あの人」に学ぶ!駆け出しRailsエンジニアの日常の過ごし方
expajp
8
1.3k
【2018/09/18 Otemachi.rb#9】君(退会したユーザ)の名は。
expajp
0
460
Other Decks in Technology
See All in Technology
FastlyとfalcoでNode.jsレスな Webサーバー構築 : IPTV版 ABEMAアプリインフラ刷新 / Building web server using Fastly and falco without Node.js for IPTV ABEMA app
nodaguti
0
240
株式会社M2X エンジニアチーム紹介資料
m2xsoftware
0
320
Azure SQL Database Hyperscale HA レプリカの監視
sansantech
PRO
0
190
AWS IAM Identity Center議論会 〜 認証認可結合モデルと認証認可分離モデル / 20240827-jawsug-arch-iam_identity_center
opelab
3
320
エンジニア視点で見る、 組織で運用されるデザインシステムにするには
shunya078
1
160
X-Correlation Injections (or How to break server-side contexts)
fransrosen
0
360
Azure Cosmos DB での時系列ログの運用と改善
sansantech
PRO
0
190
【Λ(らむだ)最近のアプデ情報 / RPALT20240904
lambda
0
160
目標設定と習慣化で今よりも一歩生産性を上げる
sansantech
PRO
7
2.3k
APIのドキュメント化何使ってますか?
miu_crescent
2
160
Oracle Database 23ai 新機能 #3 Oracle Globally Distributed Database(GDD)
oracle4engineer
PRO
1
160
Oracle Exadata Database Service(Dedicated Infrastructure):サービス概要のご紹介
oracle4engineer
PRO
0
9.3k
Featured
See All Featured
Web development in the modern age
philhawksworth
204
10k
Bash Introduction
62gerente
608
210k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
22
1.7k
Git: the NoSQL Database
bkeepers
PRO
425
64k
The Language of Interfaces
destraynor
153
23k
For a Future-Friendly Web
brad_frost
173
9.3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
28
2.2k
Building an army of robots
kneath
302
42k
A better future with KSS
kneath
235
17k
Testing 201, or: Great Expectations
jmmastey
35
6.9k
YesSQL, Process and Tooling at Scale
rocio
167
14k
KATA
mclloyd
27
13k
Transcript
2018/04/12 Otemachi.rb#5 has_one :through Shu OGAWARA (@expajp)
35* n /$ .(@expajp) – &' • 3!2! –
Ruby/Rails210, – -+ – )1#"%( – 6+4
1 1 n
n
1 1 n
n
1 1 n
n has_many :through
1 1 n
n has_one :through has_many :through
has_many :through has_ many belongs_ to
has_ many belongs_ to
has_one :through has_ one belongs_ to
has_ one belongs_ to
Matter Contact User
n N+1 Query n
n matter.main_operator
scope n ' n 1"&
# %)!( n $
has_one :through n through
has_one :through n through
has_one :through n through " ! n
conditions -> { where(…) } #
n ## $( $ % n has_one :through &%!
" n ' $