使用 Devart 或 NHibernate
各位 我有一个管理大量数据的项目。有时我必须显示近 100 万行的数据。如果我有 2 个选择来解决它,并且我想在显示数据时使其更快,那么我会选择 Devart 或 NHibernate ? 我使用 PostgreSQL 作为数据库并希望尽快显示数据
rgrds
Dear All
I have project which manage so much data. sometimes I must show data almost 1 million row. If I have 2 choice to solve it and I want to make it more faster when show data what technologies better I choose between Devart or NHibernate?
I`m using PostgreSQL as database and want to show data as fast as possible
rgrds
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很难想象您真的想一次显示 100 万行。
即使您有一个包含一百万行的大表,您也可能会在允许过滤和/或分页的表单或页面上显示它们,因此您的用户一次只能看到几行。
因此,我认为您真正想要的是从包含 100 万行的大表中一次选择 50 或 100 行。
为此,您可以使用 ADO.NET 或任何您想要的 ORM。它们的功能基本相同,这只是个人喜好的问题,并且在使用如此大量的数据时没有显着的性能差异。
如果您确实想一次加载整百万行,那么...无论如何,无论您使用哪种数据访问技术,您都会遇到性能问题。即使使用 ADO.NET 和 DataReader。
即使性能不是问题……对我来说仍然没有意义。
您的用户如何处理同时显示的一百万行数据?无论如何,他们不可能同时看到所有人。
I can hardly imagine that you really want to show 1 million rows at once.
Even if you have one big table with a million rows, you will probably show them in a form or on a page which allows filtering and/or paging, so your users will only see a few rows at a time.
So I think what you really want is to select, let's say, 50 or 100 rows at once from your big table with a million rows.
For that, you can use ADO.NET or any ORM you want. They all do basically the same, it's just a matter of personal preference and there's no notable performance difference when used with this amount of data.
If you really want to load the whole million rows at once, well...you will get performance problems anyway, no matter what data access technology you use. Even with ADO.NET and a DataReader.
And even if performance would not be an issue...it still makes no sense to me.
What do your users do with a million rows of data, all shown at once? They can't see them all at the same time anyway.
如果您要显示 100 万行,那么任何 ORM 都不是您的选择。
If you are going to show a 1 million of rows then any ORM is not your choice.