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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:20:10+00:00 2026-06-10T13:20:10+00:00

I have 8 tables with over 2 millions rows using INT(4B) PK used for

  • 0

I have 8 tables with over 2 millions rows using INT(4B) PK used for frequent inserting and reading. The older 9/10 of the data is read occasionally and doesn’t matter how long it takes to access it, while the newer 1/10 has to be fast for both INSERT and SELECT. The tables are divided into 2 categories of requirements:

  1. 100 INSERTs/sec
  2. 20 INSERTs/sec, occasional UPDATE

Because it should be working with innodb_buffer_pool_size set to 32M and the old data is unimportant, I think the best solution will be to say once per week to copy the older half of each table into big archive tables. Plus I should use infile inserting instead of the current transactions. Is it a good silution? I’ll appreciate any advice and link about this problem.

  • 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-10T13:20:11+00:00Added an answer on June 10, 2026 at 1:20 pm

    If you are using InnoDB, the data is naturally “clustered” using the PRIMARY KEY of the table, if you defined one (ie: “id INT NOT NULL PRIMARY KEY AUTO_INCREMENT”), the data is grouped by ID (and will stay that way).

    So your most recent INSERTed data is naturally grouped on some InnoDB buffers, and your old archive data doesn’t matter at all.
    I don’t think you will benefit from splitting data into archive tables/database and recent one, except you will make everything much more complex!

    To speed-up insertion/updates/delete on InnoDB, you have to think about the physical location of your InnoDB log file: InnoDB needs to insert the modification into it to achieve the operation (wether it’s a explicit transaction or an implicit one!), it doesn’t wait for the data or index to be put back in disk. It’s a pretty different strategy than MyISAM.

    So if you could allocate a fast sequential storage for the InnoDB log file, 10krpm+ hard-drive or SSD, and keep the ibdata in another drive or raid-array, you will be able to sustain an impressive number of DB modifications: it’s IO bound on InnoDB log file (exception is you use complex or heavy where clause on update/delete).

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

Sidebar

Related Questions

I have a table with well over 5 millions rows, that contains hierarchical data
I have a SQL table BookChapters with over 20 millions rows. It has a
I have two tables Product (id int, brandid int,Name nvarchar(1000)) 2+ million rows Brand
Parsing some data and inserting it into 3 tables from .NET. Using Table Valued
I have the following table (contains over a million rows): **MyTable** id - int(10)
I have a database used for statistics, with over 2000 tables, each with ~100
Assuming I have 2 large tables with well over 10 Million Rows in each
I have a very large table of over 9 million rows and in my
I have a large database with over 150 tables that I've recently been handed.
I have a ReferenceID varchar(6) column in over 80 different tables. I need to

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.