Active Record: Joins

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

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.
@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
@TroyboyTv
@TroyboyTv 7 жыл бұрын
""that's all for today, thank you for *joining* me " kekekekekek
@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
4.2 - Rails Models - Databases and Active Record
1:02:21
saasbook
Рет қаралды 2,8 М.
Rails Concerns vs. Modules and when to use each
13:18
webcrunch
Рет қаралды 2 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Rails Asset Pipeline
20:23
schneems
Рет қаралды 4,1 М.
Understanding Ruby on Rails Active Record Migrations
27:30
webcrunch
Рет қаралды 20 М.
How to use include, prepend and extend in Ruby
16:05
Alberto Almagro
Рет қаралды 1,1 М.
Databases & Rails: Database Backed models with ActiveRecord
21:09
Ruby on Rails: What's The Difference Between Joins & Includes?
14:02
Databases & Rails: Table Relationships & Joins
22:45
schneems
Рет қаралды 20 М.
N+1 Problem: Eager Loading with Active Record
13:03
CodeOps Show
Рет қаралды 9 М.
Episode #127 - ActiveRecord Tricks
13:27
Drifting Ruby
Рет қаралды 32 М.
Understanding Active Record Associations
15:16
webcrunch
Рет қаралды 35 М.
Taking A Look At Scopes In Ruby On Rails 7
11:16
Deanin
Рет қаралды 2,4 М.