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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:21:46+00:00 2026-05-13T23:21:46+00:00

I have table where I track various statistics about site usage. Once a week,

  • 0

I have table where I track various statistics about site usage. Once a week, I plan to use these statistics and information from other tables to calculate various key indicators for use in multiple reports. This is in order not to have compute the complex data each time a report is accessed. These indicators will be stored in a separate table called “indicators”.

There are approx. 50 indicators for 220 countries (i.e. a set of 50 for each country separately). Given that these figures are calculated weekly, I get the mind-boggling number of:

50 x 220 = 11,000 inserts/updates each week

My indicators table is structured in the following way:

id PK | type (TINYINT) | country_id (TINYINT) | year | week | value

… where I would basically insert/update 50 rows of different “type” per country.

What I’d like to ask is: am I going completely the wrong way here? Might I be better off setting the countries as columns instead of rows (220 columns…)? Or perhaps the indicators and lose some flexibility? How are such high volumes of inserts/updates generally dealt with?

Thanks in advance for your time.

CONCLUSION: Looks like this is clear enough, thanks for all the contributions.

  • 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-13T23:21:46+00:00Added an answer on May 13, 2026 at 11:21 pm

    While I don’t know your exact application, this shouldn’t be problematic at all. Inserts and updates shouldn’t be table locking. I doubt your users would even notice.

    As a comparison, under load my mysql server peaks at nearly 3.5k queries / second.

    Typically you’ll want to run your maintenance scripts during periods of low use anyway.r

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

Sidebar

Related Questions

I have a table that keeps track of transactions for various accounts: AccountTransactions AccountTransactionID
I have a table that I use to keep track of some associations between
Currently we have a table that we use to track inivitations. We have an
I have a table that I keep track of fees for a specific item.
i have a table where i want to track time so a valid entry
I have table with 300 000 records (MyISAM). I get record from this table
I've seen various posts about how to implement the deletion of dependent rows from
I have a table that keeps track of the letters we send to our
I am using Sphinx Search on a website to keep track of various table
I have a table lists containing list information like title and id (auto_increment) 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.