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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:41:04+00:00 2026-06-10T02:41:04+00:00

I have a CSV file with 74 columns and about 60K rows. The contents

  • 0

I have a CSV file with 74 columns and about 60K rows. The contents of this CSV file have to be imported to a MySQL database, every month.

After the data is inserted, the end-user can query the contents of the MySQL database with predefined filters.

Putting everything in a single table would mean faster inserts, but slower reads. Splitting the content in multiple tables (with foreign keys) would mean slower inserts, faster reads and, I think, higher chance of failure.

What do you think is the best option for me, or are there any other possibilities?

  • 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-10T02:41:06+00:00Added an answer on June 10, 2026 at 2:41 am

    If all the data relationships (between the buses, clients, and trips) are 1 to 1 and information is not being duplicated throughout your CSV, you can go with a single table for these reasons:

    1. Simplest conversion from CVS to database, each column in the CVS will correspond with one column in the database
    2. Anyone that works on the database after you will know exactly what data is where because it will “look like” the CVS
    3. Your main concern “Reads being slower” won’t be a big problem because when you query the database for information, you ask for only the data you want and filter out the columns you don’t. (e.g. SELECT departure, arrival, distance FROM bustrips WHERE distance > 1000)\

    However, if you look at the data, and there is a massive amount of duplication in the CVS, possibly from more than one client riding on the same trip, or the same bus is used for more than one trip, etc. I would create a new table for each block of unique data. One example that I might already see would be a new table for buses:

    Bus_ID;
    Numberplate;
    Handicap;
    Odometer reading;
    

    I hope this helps you make the decision. It is not about “easy read” vs. “easy write” it is about information clarity by reduction of redundancy.

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

Sidebar

Related Questions

I have a csv file with 350,000 rows, each row has about 150 columns.
I have a CSV file with 5 columns and about 2*10 4 rows that
i have this huge csv file, it's 4GB, don't know how many rows but
I have a .csv file in my matlab folder with 38 columns and about
I have several excel files carrying 90 columns and about 500 rows, each file
I have a csv file with about 30 columns that i would like to
I have .csv file that contain 2 columns delimited with , . file.csv word1,word2
I have a csv file with 5 columns. I want to fetch the row
i have an input csv file with columns position_Id, Asofdate, etc which has to
I have a .csv file containing 3 columns of data. I need to create

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.