I'm working on a Rails application right now and the site currently has about 30 routes(map.connect). I expect that to eventually reach about 60 or 70. Is there any side effect of having lots of routes? I guess I'm just paranoid! :) Thanks
Re: 70 routes a problem?
No, it works fine. My Rails project has about 1000 and it works fine.
(It has that many because a scaffold that I use, Hobo, is automatically creating them)
660 in my non-scaffold application. Only problem is rake routes
takes a tick to load.
否,但是我建议您查阅该指南,以防万一您错过了什么: http : //guides.rubyonrails.org/routing.html
See @stephenmurdoch's answer here: Rails routes and site performance
70 may not affect performance, but too many routes may.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.