Apr 02 2024 08:07 AM
I have a database with about 10 years of records. We only need two years of history in the current database. How can I move the older data but keep in case we need to review?
Roberta
Apr 02 2024 08:12 AM
Apr 02 2024 08:40 AM
Apr 02 2024 08:40 AM
Apr 03 2024 04:34 AM
Can you quantify "slowly"? Seconds? Dozens of seconds?
What operations, specifically, are slow? Simply opening the accdb and waiting for the first form to settle?
What is the design pattern for opening forms? I.e. are forms bound to unfiltered queries, or even whole tables?
What database engine is used for the back end, accdb? SharePoint lists? SQL Server? Something else?
It's not uncommon for certain design patterns that work okay initially, on small recordsets, to be become increasingly sluggish as the number of records grows. Unfortunate design choices begin to make their impact known over time.
Trust me, I am well aware of that problem. This isn't on the same development platform, but I recently found myself relearning this important principle, even though I've been doing database work for more than 20 years.
The more details you can share about the design of the database application, the more likely someone will have direct suggestions to share. At the end of the process, you may still want to archive older data, but that should be a last resort.
Apr 03 2024 05:08 AM
Apr 03 2024 05:55 AM
Okay, thanks.
20 seconds is SLLOOOOOWWWW. Time to refactor/redesign.
Archiving might be an interim, delaying tactic to put that off while you work on redesign.
My first target would be that linked Excel spreadsheet. Probably that is not the most efficient part of the application. How many records in it? How is it created? How is it used? Can it be replaced by an Access table by importing the data from it?
When you open the relationships window, try clicking on "All Relationships". Does that show any additional tables beyond the first three you see?
Can you manually add the other tables? Then take a screenshot for us. That might help in offering ideas on ways to improve it. Might not, but it could help a lot.
Apr 03 2024 06:39 AM
Apr 03 2024 07:51 AM
Apr 03 2024 04:44 PM
The lack of designated relationships is predictable, given your description earlier. We can work on that.
You should be able to add screenshots in a couple of ways, but you have to elect to reply this way on the first screen.
..
Apr 08 2024 05:28 AM
@Skandel590 I will look into the steps of getting this done. I don't want to mess anything up..
I think you are saying to archive the table in the current database, then delete the unwanted records from the current database?
Apr 08 2024 05:31 AM
Apr 08 2024 05:44 AM
Apr 08 2024 08:03 AM