LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2008, 02:15 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
MySQL Performance


Dear All,

I am not a DBA, or an expert. Recently i have installed Mysql5 on Redhat 5.0 on IBM P series have 2GB of RAM. there was a team who worked on Mysql regarding table and database creation. My question is "we are using this database for reporting only, and we have 500MB of daily data that is added to this database.
Current size of DB is 120GB. i want to improve the performance of database, while retriving the data to generate the report. Is it possible to archive the old records. or to improve the performance any other way.

thanks.
 
Old 06-01-2008, 08:48 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
If your not using InnoDB as the engine, I highly recommend it for a database of this size, you should see less Disk I/O which is usually the bottleneck when using MyISAM table engines.

Then of course, good indexing always plays a good role in performance along with good SQL queries. If queries are taking exceptionally long, have a DBA or someone with good database skills look at the query itself to find improvements.

And yes, archiving also will eliminate the need to reproduce reports on data you've already created, etc.
 
Old 06-01-2008, 11:58 AM   #3
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Original Poster
Rep: Reputation: 31
Thanks for reply,

Can you please help me how do i archive mysql database.

thanks.
 
Old 06-03-2008, 01:36 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You have to have a clear definition of what defines an 'expired' record ie DB row.
It might be something as simple as any row whose creation date < today -30 days (ie more than 1 mth old).
On the other hand, if you have dependent recs ie parent-child relationships where one of the recs doesn't have a suitable date, it gets a bit more complex.
I've written Perl code in the past to deal with exactly these kinds of things, but each prog was custom built.
If you can clearly define (ask the data owner) 'expired', I can likely help.
 
Old 06-03-2008, 09:20 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Yeah, I agree with chrism01, not knowing your database and how it's used, stored records, if it's transactional and not knowing what you need to archive or keep makes it impossible to tell you how to archive data.

In my experience though, the most commonly used archiving method is by the date, if the table has a date column, etc. But honestly if your database stores such data that needs to be archived because it grows tremendously, usually this should be developed by the developers to safely archive the data that can be archived.
 
Old 07-25-2008, 06:21 AM   #6
Anand Kumar
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
MySQL Data Archiving

When we were faced with database archiving issues for Tier 1 storages, we carried out an internal analysis on the data value of present enterprise data stored in the application databases. We realized that proactive data archiving and migration to Tier 2 storages will work in favor of improving application performance. Also, database archiving helped sort out regulatory compliance issues faced by the organization.

Last edited by Anand Kumar; 02-17-2009 at 05:28 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL performance Sheridan Linux - Server 29 07-09-2010 06:30 AM
mysql performance tuning jindalarpan Linux - Server 2 05-19-2008 11:57 PM
Mysql performance issues ub3rj3phf Linux - General 1 02-10-2007 10:40 PM
MySQL performance in Redhat. sudhasmyle Linux - Software 2 07-06-2005 08:08 PM
MySQL Performance in Redhat sudhasmyle Linux - Software 2 07-05-2005 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration