Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 19th, 2007, 03:31 PM
Friend of Wrox
 
Join Date: Sep 2005
Location: , , USA.
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


Reply With Quote
  #2 (permalink)  
Old February 20th, 2007, 09:04 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old February 20th, 2007, 09:35 AM
Friend of Wrox
 
Join Date: Sep 2005
Location: , , USA.
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

Reply With Quote
  #4 (permalink)  
Old February 20th, 2007, 09:46 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #5 (permalink)  
Old February 20th, 2007, 10:18 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Salisbury, Wiltshire, United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:48 AM.


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