title: React, MySQL, PHP fetching and storing large data
body: <p>I am creating an application with React as the frontend and PHP as the backend. MySQL is used as the database.</p>
  <p>My application is for viewing ECG data, with markers where the R-Peaks are. Some of the data that users will upload can be up to 1GB.</p>
  <p>The data needs to be displayed all at once, I can't fetch only half the data and show that because the user might need to see the other half.</p>
  <p>What would be the best way to get this data using axios? I have thought about chunking the data on the server side but I'm not sure how I would implement that.</p>
  <p>How should the thousands of data points be stored on the frontend?</p>
  <p>The data structure is as follows:</p>
  <pre><code>{
     ECG_Y: [236.1541928, 234.5303428, 241.9536573, 262.3677722, 278.6062727],
     ECG_X: [3306.672, 3306.6722, 3306.6724, 3306.6726]
  }
  </code></pre>
  <p>ECG_Y is the time axis, and ECG_X is the value for that specific time.</p>
  <p>Is there a better way I can store this in MySQL? I plan on storing it as a plain JSON object</p>