Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2007, 03:31 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Corey
Default Increase The Performance Of My Queries

I’ve been working with some very large databases, which are taking a long time to run

I am hoping I can get some advice on how I might be able to increase the performance of my queries?

Should I (examples)
1.Request to have more data archived or smaller amounts of data in the database
2.Request a new table added to the server with only customers I deal with.

Thank you for your time and help

Corey


 
Old February 20th, 2007, 09:04 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

When you say large databases? Are they Access or SQL? If Access, how large are they? If SQL, where are the queries, in Access or on the SQL Server?


mmcdonal
 
Old February 20th, 2007, 09:35 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Corey
Default

The queries are made up of Access and some SQL Pass Through queries. My Database is pulling from an Oracle Database

 
Old February 20th, 2007, 09:46 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

The bes toption is to have the queries reside on the server database, rather than in the front end since the server will optimize them, and they will run faster.

You can also limit your recordsets with the parameter of your choosing, even if it is like SELECT TOP 100 or something simple like that.

See Te Guru's Guides by Henderson for further tuning, or The Art of SQL is also a good book. Unless it is some fundamental front end issue, these are going to be your best sources.

Did that help?

mmcdonal
 
Old February 20th, 2007, 10:18 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Corey,

Its difficult to help without getting too deep into your setup... but you could think about front-loading a lot of the server data that isnt going to change, so the lag is kept to when the application starts up rather than throughout the usage of the thing. Not always convenient though.
If your mdb is on a server location too, then it might be worth putting a copy locally on a machine and seeing if that helps any. To do this in a production environment, you would need some form of downloader..

I do this kind of thing regularly and use batch files to copy the server version to c:\temp and then an autoexec to grab anything which isnt gonna change during the session. You can go further and have an intermediate access backend for any shared data on the access side of things as well as the Oracle backend. I'll stop there!

HTH

Lee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase Performance of main query vb89 Oracle ASP 0 September 8th, 2008 12:26 AM
identify increase automatic phuc2583 Classic ASP Basics 4 January 10th, 2008 08:00 PM
Combining Queries or results from 2 queries Ford SQL Server 2000 24 November 7th, 2005 08:54 PM
How to Increase Report width Kiransuthar BOOK: Professional Crystal Reports for VS.NET 1 January 28th, 2005 07:07 AM
How to increase speed manishgore Pro VB Databases 5 March 2nd, 2004 05:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.