• <bdo id='XeCYp'></bdo><ul id='XeCYp'></ul>
        <i id='XeCYp'><tr id='XeCYp'><dt id='XeCYp'><q id='XeCYp'><span id='XeCYp'><b id='XeCYp'><form id='XeCYp'><ins id='XeCYp'></ins><ul id='XeCYp'></ul><sub id='XeCYp'></sub></form><legend id='XeCYp'></legend><bdo id='XeCYp'><pre id='XeCYp'><center id='XeCYp'></center></pre></bdo></b><th id='XeCYp'></th></span></q></dt></tr></i><div id='XeCYp'><tfoot id='XeCYp'></tfoot><dl id='XeCYp'><fieldset id='XeCYp'></fieldset></dl></div>
        <tfoot id='XeCYp'></tfoot>

      1. <legend id='XeCYp'><style id='XeCYp'><dir id='XeCYp'><q id='XeCYp'></q></dir></style></legend>

        <small id='XeCYp'></small><noframes id='XeCYp'>

        Ruby on Rails 中的存储过程

        Stored procedures in Ruby on Rails(Ruby on Rails 中的存储过程)

        <small id='8eUCA'></small><noframes id='8eUCA'>

            <bdo id='8eUCA'></bdo><ul id='8eUCA'></ul>
              <tbody id='8eUCA'></tbody>

              • <i id='8eUCA'><tr id='8eUCA'><dt id='8eUCA'><q id='8eUCA'><span id='8eUCA'><b id='8eUCA'><form id='8eUCA'><ins id='8eUCA'></ins><ul id='8eUCA'></ul><sub id='8eUCA'></sub></form><legend id='8eUCA'></legend><bdo id='8eUCA'><pre id='8eUCA'><center id='8eUCA'></center></pre></bdo></b><th id='8eUCA'></th></span></q></dt></tr></i><div id='8eUCA'><tfoot id='8eUCA'></tfoot><dl id='8eUCA'><fieldset id='8eUCA'></fieldset></dl></div>
                • <legend id='8eUCA'><style id='8eUCA'><dir id='8eUCA'><q id='8eUCA'></q></dir></style></legend>
                  <tfoot id='8eUCA'></tfoot>
                  本文介绍了Ruby on Rails 中的存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是一个拥有 6 年经验的 .net 人.最近我开始研究 ROR 项目并意识到根本没有使用存储过程/sql 函数.在询问它时,我知道这是一种常见的做法,通常团队中根本没有人编写 sql 查询,一切都是使用 ActiveRecord 完成的.

                  I am a .net guy with 6 years of experience. Recently I started working on ROR project and realized that stored procedures/sql functions are not being used at all. On inquiring about it I got to know that it is common practice and in general nobody in team writes a sql queries at all, everything is done using ActiveRecord.

                  我在谷歌上搜索了任何可能的原因,但没有找到太多信息.所以我只是想知道

                  I googled about any possible reasons for this but didn't find much information. So I am just curios to know

                  1. 不喜欢使用存储过程/sql 函数是一种常见的做法吗?
                  2. 使用存储过程的优缺点是什么?

                  推荐答案

                  不喜欢使用存储过程/sql 函数是一种常见的做法吗?

                  Is it common practice that stored procedures/sql functions are not preferred to use?

                  非常很常见,大多数 Rails 应用将永远不需要使用 ActiveRecord 以外的任何东西.

                  It is very common, most Rails apps will never need to use anything more than ActiveRecord.

                  Rails 背后的主要理念之一是,将有效产品推向市场今天比将快速"产品推向市场更重要 6几个月后.您的产品几乎肯定不会流行到足以让性能成为问题的程度.如果这确实成为一个问题,您可以稍后在性能方面提供支持,但当务之急是能够快速构建应用程序,并能够快速重构部分或全部以响应您的市场.

                  One of the chief philosophies behind Rails is that it's more important to get a working product to market today than it is to get a "fast" product to market 6 months from now. Your product will almost certainly never be popular enough for performance to be a concern. If that does become a problem, you can shore up the performance side of things later, but the immediate concern is to be able to build an app quickly, and to be able to rapidly refactor some or all of it in response to your market.

                  使用存储过程的优缺点是什么?

                  What are pros and cons of using stored procedures?

                  它们的编写速度较慢且更难更改,因此会增加您的开发成本.但是,它们的执行速度可以更快.

                  They're slower to write and more difficult to change, and therefore front-load your development costs. However, they can be faster to execute.

                  这篇关于Ruby on Rails 中的存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Set the variable result, from query(设置变量结果,来自查询)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                  Does MySQL have time-based triggers?(MySQL 有基于时间的触发器吗?)
                  is it possible to call a sql script from a stored procedure in another sql script?(是否可以从另一个 sql 脚本中的存储过程调用 sql 脚本?)
                  Procedure to loop through comma separated string is not working(遍历逗号分隔字符串的过程不起作用)
                  <legend id='XXrhV'><style id='XXrhV'><dir id='XXrhV'><q id='XXrhV'></q></dir></style></legend>
                • <small id='XXrhV'></small><noframes id='XXrhV'>

                  1. <i id='XXrhV'><tr id='XXrhV'><dt id='XXrhV'><q id='XXrhV'><span id='XXrhV'><b id='XXrhV'><form id='XXrhV'><ins id='XXrhV'></ins><ul id='XXrhV'></ul><sub id='XXrhV'></sub></form><legend id='XXrhV'></legend><bdo id='XXrhV'><pre id='XXrhV'><center id='XXrhV'></center></pre></bdo></b><th id='XXrhV'></th></span></q></dt></tr></i><div id='XXrhV'><tfoot id='XXrhV'></tfoot><dl id='XXrhV'><fieldset id='XXrhV'></fieldset></dl></div>
                    <tfoot id='XXrhV'></tfoot>
                        <tbody id='XXrhV'></tbody>
                            <bdo id='XXrhV'></bdo><ul id='XXrhV'></ul>