Active Record: Joins

  Рет қаралды 20,211

schneems

schneems

Күн бұрын

Пікірлер: 13
@t3hj4nk
@t3hj4nk 9 жыл бұрын
So i've been struggling with joins for the past 24 hours or so, and this video absolutely helped me more so than anything else
@antoniochris524
@antoniochris524 3 жыл бұрын
i know it's kinda randomly asking but does anyone know of a good website to stream newly released tv shows online?
@calvintristen9384
@calvintristen9384 3 жыл бұрын
@Antonio Chris Try FlixZone. You can find it by googling :)
@mikecurtin0109
@mikecurtin0109 10 жыл бұрын
I thought I understood outer joins but was struggling with one and watched this video to go "back to the basics." Problem solved! Very clear explanation. Many, MANY thanks for putting together this very helpful video!
@hrishikeshambre8097
@hrishikeshambre8097 4 жыл бұрын
Thank you so much. It was a great session.
@Burak-pl1jl
@Burak-pl1jl 4 жыл бұрын
I've just started watching your video and at 0:55, you join *user* as singular but then in the where clause you use *user* as plural. Man I've wasted my whole day trying to figure out how to use this stuff. What a frustration! Thank you for the video.
@TroyboyTv
@TroyboyTv 7 жыл бұрын
""that's all for today, thank you for *joining* me " kekekekekek
@qz1771
@qz1771 7 жыл бұрын
I don't think I agree with your statement at 16:00. What if all Users individually owned all Products? Then each User will have 2403 rows in the joined table, amounting to a joined table of 1802*2403 => 4330206 rows which is obviously greater than 2401
@lohithmv019
@lohithmv019 12 жыл бұрын
which is gem you are using to show those SQL logs in console. ?
@ossama-khan
@ossama-khan Жыл бұрын
type rails c in console and thanks me if you are alive
@DONGNebab
@DONGNebab 9 ай бұрын
@@ossama-khan ahahahah
@schneems
@schneems 12 жыл бұрын
Those times are only spent in the database and not total times, so you would have to account for us creating the user object in ruby and then making another call, this would be closer to actual app time: If youtube wasn't so lame they would let me paste the benchmarks: gist.github.com number: 3185168 Join is just another tool in your toolbox, profile your app in production and optimize based on that.
@SebastianAcostaCheca
@SebastianAcostaCheca 5 жыл бұрын
ISBIT.MX
Ruby on Rails: What's The Difference Between Joins & Includes?
14:02
Databases & Rails: Table Relationships & Joins
22:45
schneems
Рет қаралды 20 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 6 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 17 МЛН
Rails Asset Pipeline
20:23
schneems
Рет қаралды 4,1 М.
Rails Concerns vs. Modules and when to use each
13:18
webcrunch
Рет қаралды 2 М.
4.2 - Rails Models - Databases and Active Record
1:02:21
saasbook
Рет қаралды 2,8 М.
Better queries with Arel
6:26
Diego Selzlein
Рет қаралды 1,2 М.
How to use include, prepend and extend in Ruby
16:05
Alberto Almagro
Рет қаралды 1,1 М.
Optimizing Active Record Queries by Kattya Cuevas
19:53
Contentful
Рет қаралды 440
Understanding Active Record Associations
15:16
webcrunch
Рет қаралды 35 М.
Understanding Ruby on Rails Active Record Migrations
27:30
webcrunch
Рет қаралды 20 М.
Raw SQL with Exec_Query and Find_By_Sql | Ruby on Rails 7
12:46
Databases & Rails: Database Backed models with ActiveRecord
21:09
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41