开发者

SQL server Partitioned table and entity framework

Can we get the benefits of the partitioning of a SQL server 2010 table w开发者_JAVA百科hen we use entity framework as the data layer? The table will have 10 000 records per day and it will be partitioned by the date created (Ex :- Older than 30 days and new)


I'm not very skilled in SQL Server so perhaps I'm wrong but I believe that table partitioning should be transparent to queries (if we are talking about automatic partition function defined in the table) - it means that common queries should still work and even have better performance if partitioning is configured correctly. So in case of database-frist design, EF should not have any problem with this because it still works with single logical table. If you mean manual partitioning by creating new table each month then it is a big probrem with EF and you will need stored procedures to access that tables.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜