A client's database is taking about 15 seconds to generate invoices. They draw data from an Orders table with about 50,000 records and Order Details with about 110,00 records.
If I use a backend with just the current year's sales the invoice creation time goes down to an acceptable 3 second.
The client wants historic data to be accessible when needed and there are lots of posts about archiving as a way of doing this, mostly using copies of the front and backends.
Ideally I'd like to use the same frontend and programmatically change the backend when needed. Does anyone have experience, or links, or even code for doing this?
If I use a backend with just the current year's sales the invoice creation time goes down to an acceptable 3 second.
The client wants historic data to be accessible when needed and there are lots of posts about archiving as a way of doing this, mostly using copies of the front and backends.
Ideally I'd like to use the same frontend and programmatically change the backend when needed. Does anyone have experience, or links, or even code for doing this?