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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:12:44+00:00 2026-06-04T11:12:44+00:00

I’ve been developing a website that will import ~12million lines of code per hour

  • 0

I’ve been developing a website that will import ~12million lines of code per hour (~1GB/Data) into a mySQL database. After looking at different VPS’ and then amazon ec2 I was thinking of going with the most cost effective solution.

As for visitors to the website there should only be ~300-600k page views a month(max of 15GB of Bandwidth), evenly spreadout through the day.

When I import the data I use “IN FILE” and it imports ~200-350k lines at time and only takes ~1-3seconds. The imports are ran via a Cron Job and will run 1 every minute (that’s ~1400 times a day).

Would it be better to have a VPS, or go with Amazon EC2? And if I go with Amazon EC2 would the CPU spikes be too much for a micro or even a small (would I need a High-CPU Medium Instance)?

If anyone could share some insight on how much CPU mySQL would actually pull in those ~1-3seconds or how much a micro Instance is allowed in CPU time.

If I go with the VPS route I will be getting the S1 package from http://x10vps.com/self-managed-vps.php and upgrade to S3 if needed.

  • 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-04T11:12:52+00:00Added an answer on June 4, 2026 at 11:12 am

    It’s difficult to say much about this without knowing anything about the particulars of the data you are loading. Does MySQL have to update indexes in the table? Is everything already sorted properly? How many columns are there, and are you performing any CPU-intensive operations in your LOAD DATA INFILE statement (e.g. replacing parts of strings)? Is old data deleted after a certain period of time, or should all data be retained for the life span of your application?

    Having said that, it sounds like a single Micro instance will probably have trouble dealing with this. Importing the data should be OK provided you back up the instance with plenty of EBS storage (maybe in a RAID configuration), but if that single instance will also be responsible for running user queries on such a large data set, that’s probably not going to run very smoothly. At best you’ll end up with a few seconds’ latency for user requests when the import script is running. Depending on your application, that may or may not be acceptable.

    If you are going to run expensive queries on your data, I can say right now that that is not going to work very well on a single Micro instance 🙂 You could scale up to a larger instance or depending on your needs, you may also want to consider using SimpleDB or a similar NoSQL solution instead (though that would take more code in your import script, because you’ll have to do batch puts of at most 25 items per batch).

    But these are just some general thoughts. And AWS actually provides new users with a free usage tier, which lets you run an EC2 Micro instance continuously for a full year without having to pay a dime, so why not sign up for an account and run your own tests? More details here. Here‘s some more general information on how micro instances work and what applications they would be suitable for.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,

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.