Note : ten thousands of records is very small for a database.
Even mysql can handle tables with ten millions of records.
Main Topics
Browse All TopicsWe have formulated couple of design specifications for a project and would like to have your opinion on them.
The project typically takes CSV files as input and applies "operations" to it. The CSV file would have tens of thousands of records with 50 to 100 columns. One of the objective of the project is to to extract one/few of the columns from it, apply an equation and create a new column/variable.
Let us assume a CSV file named student.csv with columns: Name, Gender, Age, Dept, etc. has 80,000 records/students. Now we want to make a new column/variable named 'Experience' and the equation to apply is: (Age/2 - 10).
We see two possibilities:
1) Use file read option and store the entire content in a PHP variable, fetch the 'Age' column value and populate 'Experience' for each student.
Cons: If I want to fetch only certain records (Ex: Students aged between 20 and 25) or if I want to fetch only particular columns (Ex: Name and Age), the system will need to fetch the complete file, parse it and generate such a report (this might be practically impossible in case of large datasets)
Doubt: Is there some existing API that would fetch particular set of columns from a file?! (Ex: http://code.google.com/p/p
2) When the CSV file is imported, this shall be created as a DB Table (CSV first line is the DB Table Columns). And, newly created variable (Ex: Experience) shall be new column.
I feel that the second option is practically possible, but worried about the number of tables that will be generated! If I upload 200 CSV files, it would generate 200 DB Tables, and each table will have tens of thousands of records!
Please advise with your thoughts.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: flob9Posted on 2009-08-13 at 02:50:36ID: 25086618
You should consider using DB table, but instead of creating 200 tables, group all similar csv files (same columns) and assign them a file_id column in the database.
Then, if you have, for example, 3 csv files types, you will have only 3 tables.