Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

model only rake environment

#1582

With the introduction of cache_classes, rake tasks can now be caching the models, controllers, and helpers.

It would be nice to have different levels of the environment rake dependency that loaded different levels of these such that things like db:migrate would only have to load up the models, not the entire tree.

This would speed up many of the rake tasks' startup time. In a large application this makes a decent different in rapid development.

Having controllers load before migrations happen can also cause chicken and egg problems with controllers seeking out table info on initialization purposes for caching purposes when they weren't expecting to be loaded.

Reported by gaffo · December 16th, 2008 @ 01:26 AM

State: duplicate
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
  2. gaffo
    gaffo

    In light of 802, this one could be when the solution for #802 Eager load application classes can block migration allows db:migrate* to run without caching classes.

    December 16th, 2008 @ 02:28 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to duplicate

    December 16th, 2008 @ 10:18 PM