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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:59:54+00:00 2026-06-18T22:59:54+00:00

I have a dataset of values from a MySQL table being returned which are

  • 0

I have a dataset of values from a MySQL table being returned which are then charted. Each of the data points should have a fixed time period between them, EG:

Data Point 1: 1 –
Date/Time: 2013-02-11 09:00:00

Data Point 2: 2 –
Date/Time: 2013-02-11 09:05:00

Data Point 3: 3 –
Date/Time: 2013-02-11 09:10:00

However, this is not always the case. If we can provide our charting package with a set of data values, a start time and an interval time it can process and display the chart much quicker than if we provide a list of values and a list of dates/times.

What is the most efficient way to either pre-fill or post-fill a MySQL query with 0 values where the data point is missing? For example, using the data above if data point 2 was missing , what query could I use to get MySQL to return the following dataset:

Data Point 1: 1 –
Date/Time: 2013-02-11 09:00:00

Data Point 2: 0 –
Date/Time: 2013-02-11 09:05:00

Data Point 3: 3 –
Date/Time: 2013-02-11 09:10:00

Thanks in advance

  • 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-18T22:59:55+00:00Added an answer on June 18, 2026 at 10:59 pm

    i wouldn’t input garbage into the DB, you can do the pre-processing in application layer, it should be faster and more efficient.

    If you are performing IO for each insert than the IO will be a huge bottleneck. ordering and inserting dummy points in a application layer , such as Java will probably be faster (you may do it before rendering your charts).

    Additionally, assuming you have a file with the data logged in CSV formatted way, the insert using LOAD DATA will be very fast (might be 20 times faster then pre-processing each line and inserting line by line )

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

Sidebar

Related Questions

I have two data sets, each dataset contains the pixel values of an image.
I have a program which pulls data out of a MySQL database, decodes a
I have a single entry output from a paradox table which is imported into
I have a dataset which i bind to datagrid from wpf toolkit(forced to use
I have a MySQL database-table with the following colums ID status (can contain values
I have a MySQL table that holds rows of configuration data, ie: id item
I have ten values in the dataset, numbers 1 - 10 and corresponding values.
I have this code so I can grab the values ind the dataset before
I have DataSet which has 3 columns. Name - insurance comp. name - treatmentDate
I have a DataSet , where in the first table and in the row

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.