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. How 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.