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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:39:50+00:00 2026-05-12T16:39:50+00:00

I am in the process of adding a new feature to a system. The

  • 0

I am in the process of adding a new feature to a system. The process will read live data from PLC´s and store them in a database.
The data table will have 4 columns: variable_id (SMALLINT), timestamp (TIMESTAMP), value(FLOAT), quality(TINYINT).
The primary key is (variable_id, timestamp).

The system needs to be able to insert 1000-2000 records every second.

The data table will keep the last 24 hours of data, older data is deleted from the table.

The data table also needs to handle 5-10 select statements every second. The select statement is selecting the lastest value from the table for a specific variable and displaying it on the web.

Should I use MyISAM or InnoDB table format? Does MyISAM lock the entire table while doing inserts, thus blocking the select statements from the web interface?
Currently all the data tables in the data base are MyISAM tables.

  • 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-12T16:39:50+00:00Added an answer on May 12, 2026 at 4:39 pm

    Should I use MyISAM or InnoDB table format?

    For any project with frequent concurrent reads and writes, you should use InnoDB.

    Does MyISAM lock the entire table while doing inserts, thus blocking the select statements from the web interface?

    With @@concurrent_insert enabled, MyISAMcan append inserted rows to the end while still reading concurrently from another session.

    However, if you ever to anything but the INSERT, this can fail (i. e. the table will lock).

    The system needs to be able to insert 1000-2000 records every second.

    It will be better to batch these inserts and do them in batches.

    InnoDB is much faster in terms of rows per second than in transactions per second.

    The data table will keep the last 24 hours of data, older data is deleted from the table.

    Note that InnoDB locks all rows examined, not only those affected.

    If your DELETE statement will ever use a fullscan, the concurrent INSERTs will fail (since the fullscan will make InnoDB to place the gap locks on all records browsed including the last one).

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

Sidebar

Related Questions

Change Data Capture is a new feature in SQL Server 2008. From MSDN: Change
I'm in the process of adding custom buttons to my iPhone UI and want
I'm in the process of adding CAPTCHA validation to one of my websites and
Is there anyway I can make the process of adding references to C# projects
I am currently in the process of restructuring my local Subversion repository by adding
A Windows process created from an exe file has access to the command string
I have 1 process that receives incoming connection from port 1000 in 1 linux
I was adding a loading bar feature to my program in Java and I
When doing an ALTER TABLE statement in MySQL, the whole table is read-locked (allowing
I'm in the process of porting some code from Linux to Mac OS X.

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.