有没有人遇到过 CodeSmith 或 MyGeneration 的性能问题
我对这两个软件都是新手。我的一个同事向我推荐了这两个。只是想知道他们生成的存储过程代码是否有性能问题?我想使用该软件仅生成存储过程。关于这两个我应该了解什么?
I am new to both these pieces of software. A colleague of mine recommended these two to me. Just wanted to know if the stored procedure code they produce have any performance problems? I would like to use the software to produce stored procedures only. Anything on these two I should know about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我的经验,使用 CodeSmith(或 MyGeneration)生成的存储过程(或其他代码)的任何性能问题都是由于我设计不佳的存储过程模板造成的,而不是 codegen 工具的错误。
代码生成器的输出与用于驱动它的模板一样好。如果您遇到性能问题(或怀疑可能存在),请分析您生成的内容。您可能会找到可以调整模板的地方,以改进所有存储过程,或者您可能必须对特定查询进行特殊处理(如果只有一个查询不是最佳的)。
In my experience, any performance issues with the stored procedures (or other code) that I generate using CodeSmith (or MyGeneration) are the result of me designing the stored procedure template poorly, and not the fault of the codegen tool.
The output of your codegen is only as good as the templates you use to drive it. If you're having performance issues (or suspect you might be), profile the stuff you've generated. You may find places where you can tweak your templates to improve all your stored procedures, or you may have to special-case a specific query, if there's just one that's suboptimal.
如果您在使用我们的存储过程模板时遇到错误或性能问题,请告诉我们,我们将尽快修复它们。
谢谢
-Blake Niemyjski(CodeSmith CSLA 模板 的作者)
If you ever come across a bug or performance issue while using our Stored Procedure templates, please let us know and we will get them fixed ASAP.
Thanks
-Blake Niemyjski (Author of the CodeSmith CSLA Templates)