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 8570593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:35:39+00:00 2026-06-11T18:35:39+00:00

I have a very simple table CREATE TABLE IF NOT EXISTS `largecache` ( `id`

  • 0

I have a very simple table

CREATE TABLE IF NOT EXISTS `largecache` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `tooltip` varchar(255) NOT NULL,
  `name` varchar(100) NOT NULL,
  `attributes` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tooltip` (`tooltip`)
) ENGINE=InnoDB

With about 8 million entries that is used almost entirely for reads. I’m trying to make sure I’m accessing the data as quickly as possible. I’m currently using InnoDB, is it worth it to switch to MyISAM? My only concern is performance on reads. Also any other recommends I could use to speed up since the DB reads are pretty much my only bottleneck in my application.

I’m using MySQL client version: 5.1.47

Thanks.

[edit: More details]
I’m using php, and I’m querying based on exact matches of the tooltip field.
It’s being hosted on a shared VPS with 1 gig of ram, any tweaks to mysql that I can make I’ll try, but I know mysql tweaking is a pretty complex issue.

Example query:

select * from largecache where `tooltip` = "Cm8IuIyq9QMSBwgEFS0iGWAd30SUNR2EHJ0nHYYCY-odxZ6okR0pEnPgHWzQbvIiCwgBFXZCAwAYCCAiMAk4_gNAAEgPUBBg_gNqJQoMCAAQvKHZ5oCAgIA6EhUIrcC1xggSBwgEFUn1i18wCTgAQAEY2ojJgQxQAlgA"

I do have APC installed, but not memcached

  • 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-06-11T18:35:40+00:00Added an answer on June 11, 2026 at 6:35 pm

    It would be good to have the exact query you do. But based on what you have posted here goes-

    Are you planning to do any full text search (read myISAM)? Since innodb does row level locking as opposed to myISAM which does table level locking by the looks of it innodb suits your requirements. Try the following using innodb engine-

    1. Put an index on tooltip field.
    2. Try to disable transaction management from innodb config. Although this is more for writes than reads.
    3. Try to increase the cache size for innodb. All these DB engines are suckers for memory, its as simple as throwing more memory at them & suddenly they behave well.
    4. Finally, I cannot end this post without mentioning memcached. This is a distributed cache management module & it awesomely integrates with mysql. This can significantly boost your read operations.

    Provided links wherever appropriate.

    Check this for completeness sake – Why use InnoDB over MySIAM

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

Sidebar

Related Questions

We have a database with a very simple schema: CREATE TABLE IF NOT EXISTS
I have the following tables; CREATE TABLE IF NOT EXISTS `tags` ( `tag_id` int(11)
I have a very simple table with two columns, but has 4.5M rows. CREATE
I have a very simple table: +----------+--------------+------+-----+---------+-------+ | Field | Type | Null |
I have a very simple table that has just part_id and part_type: CREATE TABLE
Given the following very simple table: Create Table tblUserLogins ( LoginNumber int PRIMARY KEY
I have two mysql tables: /* Table users */ CREATE TABLE IF NOT EXISTS
I have a very simple table called Member , which consists of the following:
I have a very simple database table that joins two other tables in a
I have a very simple MySQL table Name | Time | Count James |

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.