Home » Performance » MySQL » Increase transaction query performance
Increase transaction query performance [message #3760] Thu, 04 December 2008 05:47 Go to next message
selvasays  is currently offline selvasays
Messages: 1
Registered: December 2008
Location: chennai
Junior Member
Hi,

I am installed My SQL 4.1 database under Red Hat linux with 1GB RAM.

Table A (No Index) having two columns
MobileNo
Name

Table B (No Index) also having the same structure (MobileNo and Name)

Table A having 5,400,000 records.
Table B having 1,200,000 records.

this is query to run

delete A from A,B where A.MobileNo = B.MobileNo

It is taking more than 6 hrs.

I am using default my.cnf file setting.

How to improve the performance to change the my.cnf file?


Re: Increase transaction query performance [message #3761 is a reply to message #3760 ] Thu, 04 December 2008 11:27 Go to previous message
vgatto  is currently offline vgatto
Messages: 94
Registered: November 2006
Member
Can you elaborate a little? In particular, are these tables MyISAM or InnoDB? Did you attempt this delete on a system with a heavy transaction load or on a test system? Can you provide the results of SHOW CREATE TABLE for both of these tables? What are the results of:

EXPLAIN SELECT A.* FROM A, B WHERE A.MobileNo = B.MobileNo;




Previous Topic:New to MySQL -- convert MSSQL to MySQL syntax
Next Topic:Too Many Connections
Goto Forum:
  


Current Time: Fri Jul 10 04:40:29 EDT 2009

Total time taken to generate the page: 0.01189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.