数据访问层
我们正在构建一个 MVC 应用程序,并在这个阶段尝试了 Fluent Hibernate 和 Repository 模式。最大的问题是我们将所有数据加载到内存中。这对我们不起作用,因为我们的表中将有数百万条记录。我们现在正在尝试找出其他大型项目使用了哪些有效的数据访问层。请记住,这是使用 APS.Net MVC。所以有人指出我们如何实现一个好的 DAC 层
We are building a MVC application and at this stage have tried Fluent Hibernate with Repository pattern. The big problem with this is that we are loading all the data into memory. This will not work for us since there will be millions of records in our tables. We are now trying to find out what other big projects have used for their data access layer which worked. Remember this is using APS.Net MVC. So anybody point out how we can implement a good DAC layer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在几个项目中使用了 LINQ(到 MS SQL),并且性能令人满意。但最大的表只有大约 400,000 条记录。它转换为参数化 SQL,并且应该与存储过程一样快。编译的 LINQ 会加快速度,但我从来没有这样做过。
I used LINQ (to MS SQL) in a few projects and the performance is satisfactory. But the biggest table only has about 400,000 records. It converts to parametrized SQL and is supposed to be as fast as stored procedure. Compiled LINQ will speed it up but I've never had to do that.