本文介绍了Rails路线和站点性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rails应用程序的route.rb文件中站点速度是否与名称空间/路由数量有直接关系?

Is there a direct correlation on site speed with the number of namespaces / routes in the routes.rb file of a Rails Application?

我正在处理相当大的拥有30多个不同模型/实体的应用程序,其中大多数资源都有自己的路线。

I am handling a fairly large application with more than 30 disparate models/entities and most of these resources have their own routes.

推荐答案

我没有引文†,但DHH最近表示37signals的应用程序具有数千条路由,因此如果您有足够大的盒子来运行应用程序,则可以缩放路线。

I don't have a citation† but DHH recently said that 37signals' Highrise application has thousands of routes, so it is possible to scale the routes if you have a big enough box to run your application on.

这篇关于Rails路线和站点性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 11:57