Active Record: Joins

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 13

  • @t3hj4nk
    @t3hj4nk 9 ปีที่แล้ว +6

    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 ปีที่แล้ว +2

    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.

  • @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

  • @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

  • @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 10 หลายเดือนก่อน

      @@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 ปีที่แล้ว +1

    ISBIT.MX