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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
jinroq
September 26, 2018
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Active Record について考える
Fukuoka.rb #107 Rails LT 特集
jinroq
September 26, 2018
More Decks by jinroq
See All by jinroq
Back to the roots of date
jinroq
0
1.3k
本当だってば!俺もTRICK 2022に入賞してたんだってば!
jinroq
0
640
Fukuoka.rb 2023 年度活動報告
jinroq
0
570
TRICK 2022 に入選した話
jinroq
0
350
RubyKaigiとMicrosoftと私
jinroq
0
310
msgraph: Microsoft Graph API Client with Ruby
jinroq
0
400
Fukuoka.rb 2019活動報告・2020抱負
jinroq
0
370
福岡の方から参りました Fukuoka.rb です
jinroq
0
2.1k
Microsoft Graph API Client and OpenAPI
jinroq
0
1.2k
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
280
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
380
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
570
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
The browser strikes back
jonoalderson
0
1.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
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 ͷํ͕ศརʢͳͣʣ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠