What's the impact of eager_load=true?

后端 未结 2 1629
萌比男神i
萌比男神i 2021-02-13 02:27

I need to know why eager_load is preferred to be false in non production environments? One of the arguments that I have heard of says that eager_

2条回答
  •  清酒与你
    2021-02-13 02:45

    Eager load makes rails load all of your app on startup which increases startup time.

    For example if you just want to load the rails console to check the behaviour of one model then you have to wait for all of the models, controllers etc. to load even though you only wanted to use one of them

提交回复
热议问题