开发者

EntityFramework and MySql, archiving

I'm working on an invoicing system using C#, MySql and the EntityFramework. The problem is that because of the large amount transactions, the purchase/sales invoices table will grow rapidly. However, I cannot have this affect performance. So I thought maybe I can archive the reacords or create a new table after every 'n' invoices (purchaesinvoices1..n) or a new table for each year. I originally thought this was a good approach, but now I think I might run into problems because I'm using the entity frameowrk. Ho开发者_JAVA百科w would I map one entity (PurchaseInvoice) to the different tables, be able to select, update and etc.

Is there any way around my problem, is it even a good solution? I'm open to any suggestions people may have. Thanks in advance.


I would rather just make sure you table has proper indexing applied. MySql should be able to handle a couple of million records a second. You can also use caching functionality to provide a preformance boost.

If I'm not mistaken Facebook used MySql and lets be honest that must work through a good million/100 million/trillion transactions a day.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜