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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:19:34+00:00 2026-06-08T15:19:34+00:00

I have to perform scientific experiments using time series. I intend to use MySQL

  • 0

I have to perform scientific experiments using time series.

I intend to use MySQL as the data storage platform.

I’m thinking of using the following set of tables to store the data:

Table1 –> ts_id (store the time series index, I will have to deal with several time series)

Table2 –> ts_id, obs_date, value (should be indexed by {ts_idx,obs_date})

Because there will be many time series (hundreds) each with possibly millions of observations, table 2 may grow very large.

The problem is that I have to replicate this experiment several times, so I’m not sure what would be the best approach:

  1. add an experiment_id to the tables and allow them to grow even more.
  2. create a separate data base for each experiment.

if option 2 is better (I personally think so), what would be the best logical way to do this? I have many different experiments to perform, each needing replication. If I create a different data base for every replication, I’d get hundreds of data bases pretty soon. Is there a way to logically organize them, such as each replication as a “sub-database” of its experiment master database?

  • 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-08T15:19:36+00:00Added an answer on June 8, 2026 at 3:19 pm

    You might want to start out by considering how you will need to analyze your data.

    Assumably your analysis will need to know about experiment name, experiment replica number, internal replicates (e.g. at each timepoint there 3 “identical” subjects measured for each treatment). So your db schema might be something like this:

    experiments
    
    exp_id int unsigned not null auto_increment primary key,
    exp_name varchar(45)
    other fields that any kind of experiment can have
    
    replicates
    
    rep_id  int unsigned not null auto_increment primary key,
    exp_id int unsigned not null foreign key to experiments
    other fields that any kind of experiment replica can have
    
    subjects
    
    subject_id int unsigned not null auto_increment primary key,
    subject_name varchar(45),
    other fields that any kind of subject can have
    
    observations
    
    ob_id int unsigned not null auto_increment primary key,
    rep_id  int unsigned not null foreign key to replicates,
    subject_id int unsigned not null foreign key to subjects,
    ob_time timestamp
    other fields to hold the measurements you make at each timepoint
    

    If you have internal replicates you’ll need another table to hold the internal replicate/subject relationship.

    Don’t worry about your millions of rows. As long as you index sensibly, there won’t likely be any problems. But if worse comes to worst you can always partition your observation table (likely to be the largest) by rep_id.

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

Sidebar

Related Questions

I have to perform a select on a table in the following manner: I
I'm using C++ to perform scientific simulation on some things. At this moment, due
I have a signal of electromyographical data that I am supposed (scientific papers' explicit
We have to perform a semester project with distributed computing using CORBA or ICE.
I have to perform a timer using a NSThread as I need to download
I have a data structure and have to perform lookup on it, I would
I'm using 4list views with class extending Activity. I have to perform different list
I have to perform the following SQL query: select answer_nbr, count(distinct user_nbr) from tpoll_answer
I have to perform async execution, and i have wrote the below code var
I have to perform mapping between ISO 3166-1 alpha-3 and IOC country codes. It

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.