Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6001245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:48:27+00:00 2026-05-23T00:48:27+00:00

I have a database that is about 20 GB in size. I want to

  • 0

I have a database that is about 20 GB in size. I want to know if there are any optimization tips specific to working with a database that is static. When I mean static, I don’t mean changes infrequently, I mean won’t change at all. Are there any extreme settings for values or other things that normally you stay away from with a volatile database, that can benefit a truly static database; especially considering there will only be SELECT statements and absolutely no INSERT statements? I’m using MyISAM tables.

— roschler

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:48:28+00:00Added an answer on May 23, 2026 at 12:48 am

    Since everything is MyISAM, you need to focus on two major things:

    KEY CACHE

    The main mechanism used for caching is the key cache. It only caches index pages from .MYI files. To size your key cache, run the following query:

    SELECT CONCAT(ROUND(KBS/POWER(1024,IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo)))+0.4999),
    SUBSTR(' KMG',IF(PowerOfTwo<0,0,IF(PowerOfTwo>3,0,PowerOfTwo))+1,1)) recommended_key_buffer_size
    FROM (SELECT LEAST(POWER(2,32),KBS1) KBS FROM
    (SELECT SUM(index_length) KBS1 FROM information_schema.tables
    WHERE engine='MyISAM' AND table_schema NOT IN ('information_schema','mysql')) AA) A,
    (SELECT 2 PowerOfTwo) B;
    

    This will give the Recommended Setting for MyISAM Key Cache (key_buffer_size) given your current data set (the query will cap the recommendation at 4G (4096M)).For 32-bit OS, 4GB is the limit. For 64-bit, 8GB.

    FULLTEXT Indexes

    You should change the stopword list. You may want to change the stop words because MySQL will not index this list of 643 words. Try creating your own stopword list and changing the min word length.

    Step 1) Create a stop word list of your own. You could add ‘a’,’an’, and ‘the’.

    echo "a" > /var/lib/mysql/custom_stopwords.txt<BR>
    echo "an" >> /var/lib/mysql/custom_stopwords.txt<BR>
    echo "the" >> /var/lib/mysql/custom_stopwords.txt
    

    Step 2) Add these options to /etc/my.cnf

    ft_min_word_len=2
    ft_stopword_file=/var/lib/mysql/custom_stopwords.txt
    

    Step 3) service mysql restart

    Step 4) Create new FULLTEXT indexes. Any existing FULLTEXT indexes before restart of mysql should be reindexed.

    Give These Ideas a Try !!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Database that contains data about articles , structures and manufacturers .
So we have a database column that can contain just about anything. Unicode, numbers,
We have an Oracle database here that's been around for about 10 years. It's
I have a general question about the way that database indexing works, particularly in
I have an Android Service that accesses the database about once per minute. Is
Description: I have a huge MySQL database table. The total size is about 10
I am currently working on a project that will store specific financial information about
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1
I have a database that has around 10k records and some of them contain
I have a database that had 15 years of cruft stuffed into it by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.