N+1 Query And Performance Optimizations | Ruby On Rails For Beginners Part 9

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 16

  • @Deanin
    @Deanin  2 года назад +7

    Thought I'd try something different with this video, I hope you like my Performance

    • @Deanin
      @Deanin  2 года назад +2

      Did I do an entire video just to make one pun? Maybe.

  • @bergenbergenbergenbergen3512
    @bergenbergenbergenbergen3512 2 года назад +6

    Easily one of the top webdev and especially RoR channels on the internet 👍

  • @ricardomordaunt1101
    @ricardomordaunt1101 2 года назад +3

    Thank you very much for taking the time out to post these very helpful videos..

  • @marcusl16
    @marcusl16 2 года назад +3

    God, i waited so much to see how you could face this super common problem but in rails7, thank you so much for all this knowledge.

    • @Deanin
      @Deanin  2 года назад +1

      Glad it was helpful 🙂

  • @tkhobbes
    @tkhobbes 2 года назад +3

    What a fantastic video! Rarely found neither on blogs or in other youtube videos! Really helpful!

  • @kooba1854
    @kooba1854 2 года назад +3

    Wow, that's very helpful thanks a lot! 🚀

  • @ledockol
    @ledockol 2 года назад +3

    Very helpful video, thanks!

  • @danielleedottech
    @danielleedottech 2 года назад +3

    this is some high quality content!

    • @Deanin
      @Deanin  2 года назад

      Appreciate the kind words haha!

  • @ericchua3492
    @ericchua3492 2 года назад +1

    At 9:43, you asked us to do our own show post fixes. I can't figure out how to fix it, checked your repo. Any right repo I can refer?

    • @guillermoemmanuelsanchezin1664
      @guillermoemmanuelsanchezin1664 Год назад +1

      IDK if you are still wondering how to solve this. I noticed that if you open your terminal, there's a part in which indicates the possible path in which you need to make the modifications. In my case, indicated me that it was admin/show_post. I divided my @post from show_post to two variables as follow:
      @post = Post.includes(:user).find(params[:id])
      @comments = Post.find(params[:id]).comments.includes(%i[user rich_text_body])
      After those changes in my admin_controller, I needed to change one line in the views:
      from:
      to:
      It was mostly try and error tbh

    • @dangmannn
      @dangmannn Год назад +3

      In the admin controller:
      def show_post
      @post = Post.includes(:user, comments: [:user, :rich_text_body]).find(params[:id])
      end

  • @ratnarajsukale141
    @ratnarajsukale141 2 года назад +1

    Rails 6 added insert_all, insert_all! and upsert_all methods do we still need import gem?

  • @ReaPer4463
    @ReaPer4463 2 года назад +4

    Bazaru net