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
Active Record について考える
Search
jinroq
September 26, 2018
0
240
Active Record について考える
Fukuoka.rb #107 Rails LT 特集
jinroq
September 26, 2018
Tweet
Share
More Decks by jinroq
See All by jinroq
Fukuoka.rb 2023 年度活動報告
jinroq
0
400
TRICK 2022 に入選した話
jinroq
0
220
RubyKaigiとMicrosoftと私
jinroq
0
180
msgraph: Microsoft Graph API Client with Ruby
jinroq
0
270
Fukuoka.rb 2019活動報告・2020抱負
jinroq
0
250
福岡の方から参りました Fukuoka.rb です
jinroq
0
1.7k
Microsoft Graph API Client and OpenAPI
jinroq
0
960
Fukuoka.rb #150 LT
jinroq
0
260
5 分で分かるアイキューブドシステムズ
jinroq
0
540
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Fireside Chat
paigeccino
34
3.1k
Designing for humans not robots
tammielis
250
25k
Code Review Best Practice
trishagee
65
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Writing Fast Ruby
sferik
628
61k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
KATA
mclloyd
29
14k
How to Ace a Technical Interview
jacobian
276
23k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Transcript
Active Record ʹ͍ͭͯߟ͑Δ 2018/09/26 Fukuoka.rb #107 Rails LT ಛू ODA
Hirohito
͜ͷ LT େձͰ https://cdg.connpass.com/event/89504/
͜Μͳ LT Λͨ͠ https://speakerdeck.com/oda/rubykaigi-2018-de-not- accepted-saretaneta
ͦͷ LT ͷதͰ
͜Μͳωλ͕͋ͬͨ
CLOMO MDM ͱʁ
ΤΫεϙʔτػೳ
ΤΫεϙʔτػೳ
ͬͨ͜ͱ
ͬͨ͜ͱ
ͬͨ͜ͱ
ͬͨ͜ͱ
Α͘ݴΘΕΔ Rails ͷ ύϑΥʔϚϯεվળํ๏
Active Record Λ 0.0 msec ʹ͠Α͏ʂ
= Active Record ΛΘͳ͍
औΒΕΔબࢶ • ੜ SQL • Arel • ͦͷଞ
͜ͷ߹ੜ SQL Λબͨ͠
͜͜Ͱൃੜ͢Δٙ
Ұͭͷ SELECT จͰ CSV શཁૉΛ औಘ͢Δ͜ͱ Active Record Ͱ ࣮ݱͰ͖ͳ͔ͬͨͷ͔ʁ
͜Μͳهࣄ͕͋ͬͨʢ2013/06/03ʣ http://www.atmarkit.co.jp/ait/articles/1306/03/news057.html
͜Μͳهࣄ͕͋ͬͨʢ2013/06/03ʣ http://www.atmarkit.co.jp/ait/articles/1306/03/news057.html
2013/06/27 Rails ver. 4.0 ϦϦʔε
͜ΕΛ౿·͑ͨ͏͑Ͱ
ڪΒ͘Ͱ͖ͳ͍
ڽͬͨ͜ͱΛΖ͏ͱ͢Δͱ Active Record ͕ᐫʹͳΔ ߹͕͋Δ
ಛʹύϑΥʔϚϯεվળʹ ͓͍ͯݦஶͩͬͨ
Active Record ෆཁʁ
NO!!!
ෆཁͳΒ Rails ͔Βফ͑ ସ ORM ͕࠾༻͞ΕΔͣ
͔͠͠ɺΘΕଓ͚͍ͯΔ
͜Μͳهࣄ͕͋ͬͨʢ2013/06/03ʣ http://www.atmarkit.co.jp/ait/articles/1306/03/news057.html
ػೳ < ن
ػೳ < ن CoC (Convention over Configuration)
·ͱΊ • Active Record CoC ʹج͍͍ͮͯΔ • Active Record
ΛࣺͯΔঈେ͖͍ • Active Record Λਂ͘ΕΔ΄Ͳ Active Record ͷํ͕ศརʢͳͣʣ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠