473,545 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help optimizing query, awfully slow on only 20000 records

1.2Ghz Pentium, with 1/2Gig of ram, 4.0.14MySQL, RedHat9.0

I have about 20K records that result from the following query. Front end for the
database is ACCESS97 and pulling up 20K records makes a huge performance hit.
For the form in question I am using PASSTHROUGH type query (the one that just
passes everything straight to server without ODBC).
NOTE: souce_for_inqui ries_form is the join table and is searchable in the from
(it feeds a pull-down list).

SELECT inquiries.inqui ry_id, inquiries.conta ct_id, inquiries.indiv _contact_id,
inquiries.phone , inquiries.fax, inquiries.agent _id, inquiries.inqui ry_date,
inquiries.event _type, inquiries.lette r_type, inquiries.event _date,
inquiries.event _date_general, inquiries.event _location, inquiries.guest s,
inquiries.hours , inquiries.budge t, inquiries.event _description,
inquiries.talen t_description, inquiries.past_ use, inquiries.refer red_by,
inquiries.date_ sent, inquiries.end_u ser, inquiries.event _id, inquiries.notes ,
source_for_inqu iries_form.orga nization,
source_for_inqu iries_form.mail ing_address_1,
source_for_inqu iries_form.mail ing_address_2, source_for_inqu iries_form.city ,
source_for_inqu iries_form.stat e, source_for_inqu iries_form.zip,
source_for_inqu iries_form.cont act_type, individual_cont acts.contact_na me_first,
individual_cont acts.contact_na me_last, individual_cont acts.contact_pr efix,
individual_cont acts.contact_ti tle, individual_cont acts.email
FROM inquiries
LEFT JOIN individual_cont acts ON inquiries.indiv _contact_id =
individual_cont acts.indiv_cont act_id
INNER JOIN contacts AS source_for_inqu iries_form ON inquiries.conta ct_id =
source_for_inqu iries_form.cont act_id
ORDER BY inquiries.inqui ry_id DESC;

-------------------------------------------------
Visit CARMEL MUSIC & ENTERTAINMENT website http://carmelme.com

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1529

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
493
by: Apollo | last post by:
1.2Ghz Pentium, with 1/2Gig of ram, 4.0.14MySQL, RedHat9.0 I have about 20K records that result from the following query. Front end for the database is ACCESS97 and pulling up 20K records makes a huge performance hit. For the form in question I am using PASSTHROUGH type query (the one that just passes everything straight to server without...
4
5770
by: DFS | last post by:
This UNION query is very slow. With only 3,000 records in the Parent table and 7,000 records in the Child table, it takes about 60 seconds to run and returns about 2200 records. Any ideas on speeding it up? Thanks. -- PART 1: HAS NO CHILD RECORDS SELECT P.PROJECT_ID, 'No Child Data' AS SUB_TYPE
6
4536
by: Ryan | last post by:
I came across a situation that I've been unable to explain and was hoping somebody had an answer: I had written an update query which was taking about 8 seconds to run and considered it too slow. I copied the SQL statement from the query and tried executing it from code which then ran in 1 second. To make sure that I didn't miss anything,...
8
1726
by: Brenda J. | last post by:
Hello all I'm sure this is a relatively simple query to create, but I can't seem to get my head around it. Here is an example of the two tables I am using: tblAccountTypes AccountTypeID AccountType AccountNumberRange
5
2190
by: wespvp | last post by:
I'm seeing what seems like slow retrieval times over the network. I am retrieving a single field of about 100-120 characters per record. I am getting about 3 seconds per 1000 records - it takes 30 seconds to retrieve 10,000 records. That's only about 36 KBytes/sec. This is a 100BT switched network (not sure if it is vlan'd or through a...
4
3479
by: Got2Go | last post by:
Hello Group, I have a table that has millions of records in it. About 100 records are added every 5 minutes (one per OIDID) (the sample provided below has data for 2 OIDIDs (99 and 100) And I have a webpage that executes 9 queries one after the other, and then displays the results on the webpage. When the database was empty, this process...
13
5637
by: Slower Than You | last post by:
Well, I think it's complex anyway -- you might not :) TableDef: CREATE TABLE CustTransactions ( TransactionKey int IDENTITY(1,1) NOT NULL, CustomerID int, AmountSpent float, CustSelected bit default 0); TransactionKey is the primary key, CustomerID and AmountSpent are both
3
3334
by: Woody Ling | last post by:
>From the DB2 UDB memory model document, I found the following info: ============================== The agent private memory set consist of the following memory pools. Their sizes are specified in the database configuration parameters enclosed in parenthesis: Application Heap (applheapsz) Sort Heap (sortheap) Statement Heap (stmtheap)
8
2377
by: rshivaraman | last post by:
Hi : I have a TableA with around 10 columns with varchar and numeric datatypes It has 500 million records and its size is 999999999 KB. i believe it is kb i got this data after running sp_spaceused on it. The index_size was also pretty big in 6 digits. On looking at the tableA
9
2975
by: Bob Darlington | last post by:
The following query opens slowly the first time it is opened (6-7 seconds), but then is less than one second for the next random number of openings before slowing (6-7 seconds) again. SELECT tTenantDetails.LAN, tTenants.Archive, tTenants.PropNum FROM tTenants INNER JOIN tTenantDetails ON tTenants.LAN = tTenantDetails.LAN WHERE...
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7669
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3468
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.