×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Suggested MySql Settings

Suggested MySql Settings

Suggested MySql Settings

(OP)
Hi. All

Was hoping to get some suggestions as to MySql variable settings based on the following:

1. System Ram: 2G, Database Engine: ISAM
2. Tables:
a: 20,000 rows, Size on disk: 250MB
b: 20,000 rows, Size on disk: 13MB

The entire DB will fit in memory 7-8 times over............

I run an update script daily which adds about 20K transactions to the respective rows of Table a, and updates various fields in Table b.

There are only maybe 20 users who access this database during the day.

The access consists mainly of sequential searches of the tables, using indexes on the tables.

There are no actual searches that would look for particular values in the tables, it's all indexed...there are a lot of sequential reads based on the indexs.

On a DS I had earlier, the update script would run in 28 seconds.
On my current one, it runs 2:43 .....almost 3 minutes.

I've been playing around with various settings, but can't get the processing time down.

Here's my current settings in my.cnf:

[mysqld]
performance-schema=0
innodb_file_per_table=1
max_allowed_packet=268435456

# Made it 500. Was 10000
open_files_limit=500

default-storage-engine=MyISAM
# My Adds
bind-address=127.0.0.1
query-cache-type=1
query_cache_size=64M
query_cache_limit=32M

tmp_table_size=64M
max_heap_table_size=64M
key_buffer_size=512M

#Tried these at 64 and ran out of memory
read_buffer_size=8M
read_rnd_buffer_size=8M

sort_buffer_size=32M
thread_cache_size=10


Be forever grateful for any advise/help anybody has

Thank you,
z

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close