Solved

complete cache of DB

Posted on 2013-06-19
13
169 Views
Last Modified: 2013-06-21
hey guys i've got a big report i need to run and the database is on the network. that means that the calls always takes very long and the multiple trips are a penalty. how do i create a local cache of the relevant tables when i'm running this mammoth report at the end of every week?

i'm thinking 3 ways

1) Access's synchronisation
2) DIY synchronisation
3) just copy the whole database to local machine, change the links of the table to the local database, run the report, link the tables back to the network database, then delete the local database

what do yall think guys? looking forward to your guidance and sharing guys = )
0
Comment
Question by:developingprogrammer
  • 4
  • 4
  • 4
  • +1
13 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
if the records are not going to change or the db is not in used at the end of the week,
the best way is option 3.
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
I vote for # 3 also.
0
 

Author Comment

by:developingprogrammer
Comment Utility
Cool, thanks guys, but if I didn't suggest number 3, how would y'all have done it? I think your methods should definitely be better than mine with all the experience y'all have! = )
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
Yes  I would have suggested it, because that is exactly what I do (in an automated fashion) on one of our reporting KPI databases.

:-)
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 250 total points
Comment Utility
The 4th way would be to use temporary tables, creating only the necessary tables locally (see my article on temp tables).
0
 

Author Comment

by:developingprogrammer
Comment Utility
Hrmm nice guys. I super like the ideas!! = ))

Hrmm may be a silly question, but if a db has one table with 100,000 records, is it faster in terms of "localising" it by

1) copying the whole database
2) reading the linked table and copying to temp table?

One is wholesale one is pinpoint (so to speak if there were more tables we want to ignore)
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
Comment Utility
I generally just copy exactly what I need into the temp table, not scientific, just the way I do things.
0
 

Author Comment

by:developingprogrammer
Comment Utility
Yup I agree. Looks more elegant that way as well. What do you think MX? And also from a performance angle MX? = ) thanks guys!!
0
 
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Access MVP)
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
Comment Utility
What I do in the case I posted is ... what fyed does. I load a local temp table with records from approx 12 different dbs on the server, then run reports from that. The local table - toward the end of the year, can  have well over a million records. It takes less than a minute to load the temp table over our network.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
Comment Utility
Joe,

That's because you have a blazingly fast network!

;-)
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
Yep ... But it's **not** the only one in the World, contrary to popular belief :-)
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
Comment Utility
I'm just jealous.
0
 

Author Closing Comment

by:developingprogrammer
Comment Utility
Superb!!! Thanks guys!! = ))
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now