NHibernate在C#中的性能 [英] NHibernate Performance in c#

查看:132
本文介绍了NHibernate在C#中的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Nhibernate是否会在200位用户中提供100%的性能,而每个用户将至少5000条记录交易到数据库中?或者最好使用C#中的啤酒屋项目之类的自己的体系结构

您能提供给我们的任何信息将不胜感激






谢谢
Anil

Hi
Is Nhibernate will give 100% performance in 200 users where every user will transact at least 5000 records into database ? Or It will better to go your own architecture like beerhouse project in C#

Any information you could give us would be appreciated






Thanks
Anil

推荐答案

我在NHibernate(使用MS SQL Server)方面表现良好,但这实际上取决于您要实现的目标.如果您创建的系统需要快速扩展且具有大量事务,那么可能值得研究诸如MS SQL Service代理之类的东西(尽管我不是oracle专家,但我认为oracle具有等效功能).

您可以编写自己的ORM,但您必须询问是否值得在时间和资源上进行投资.只有你能回答那个.如果不是这样,那么我会遵循NHibernate的思路,但是如果速度对您而言至关重要,那么请忘记ORM和直接代码的想法.确实是根据您的实际需求选择的.


德里克
I have had some good performance out of NHibernate (with MS SQL Server), but it really depends on what your trying to achieve. If your creating an system which needs rapid scaling, with a large number of transactions it may be worth looking into something like MS SQL Service broker (I assume oracle has an equivalent although I am no oracle expert).

You can write your own ORM, but you have to ask is it worth the investment in time and resources. Only you can answer that one. If not I would follow along the lines of NHibernate, if however speed is everything to you then forget the idea of ORMs and code direct. Really is your choice based on your actual requirements.


Derek


这篇关于NHibernate在C#中的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆