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

  • Home
  • SEARCH
  • 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 4088082
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:56:12+00:00 2026-05-20T18:56:12+00:00

I’m looking to optimize a few tables in a database because currently under high

  • 0

I’m looking to optimize a few tables in a database because currently under high load the wait times are far too long…

Ignore the naming schema (it’s terrible), but here’s an example of one of the mailing list tables with around 1,000,000 records in it. At the moment I don’t think I can really normalize it anymore without completely re-doing it all.

enter image description here

Now… How much impact will the following have:

  • Changing fields like the active field
    to use a Boolean as opposed to a
    String of Yes/No
  • Combining some of the fields such as
    Address1, 2, 3, 4 to use a single
    ‘TEXT’ field
  • Reducing characters available e.g.
    making it a VARCHAR(200) instead of
  • Setting values to NULL rather than
    leaving them blank

One other thing I’m interested in, a couple of tables including this one use InnoDB as opposed to the standard MyISAM, is this recommended?

The front-end is coded in PHP so I’ll be looking through that code aswell, at the moment I’m just looking at a DB level but any suggestions or help will be more than welcomed!

Thanks in advance!

  • 1 1 Answer
  • 1 View
  • 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-20T18:56:13+00:00Added an answer on May 20, 2026 at 6:56 pm

    None of the changes you propose for the table are likely to have any measurable impact on performance.

    Reducing the max length of the VARCHAR columns won’t matter if the row format is dynamic, and given the number and length of the VARCHAR columns, dynamic row format would be most appropriate.)

    What you really need to tune is the SQL that runs against the table.

    Likely, adding, replacing and/or removing indexes is going to be the low hanging fruit.

    Without the actual SQL, no one can make any reliable tuning recommendations.


    For this query:

    SELECT email from table WHERE mailinglistID = X.
    

    I’d make sure I had an index on (mailinglistId, email) e.g.

     CREATE INDEX mytable_ix2 ON mytable (mailinglistId, email);
    

    However, beware of adding indexes that aren’t needed, because maintenance of indexes isn’t free, indexes use resources (memory and i/o).


    That’s about the only tuning you’re going to be able to do on that table, without some coding changes.

    To really tune the database, you need to identify the performance bottleneck. (Is it the design of the application SQL: obtaining table locks? concurrent inserts from multiple sessions blocking?, or does the instance need to be tuned: increase size of buffer cache, innodb buffer cache, keysize area, SHOW INNODB STATUS may give you some clues,

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

Sidebar

Related Questions

I'm looking for suggestions for debugging... If you view this site in Firefox or
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.