I have thousand of text files which store daily inventory info.
Each file is around 5 MBytes, so there's aound 7 GBytes of text data currently.
I want to sort them into database.
Each of the file stores a single day info, there are 1,000 products in a file,
each product may keep stock in 200 companies, each company got different product inventory.
If I just need to store just one day info, I can create a table
say 1000 row(product) x 200 column(company) got 200,000 cells which storing the inventory info.
It seems it's not properly for a table to contains 200 column, and my another problem
is how is the design to store more than 1 day info.
My target is, all the data will present in graphic type info, lines or bars,
and which can sort data in two ways: 1)trace the inventory trend of a product, or 2)trace the inventory trend of a company.
Anyone can help?
At this point, I have 2 plans:
1) Each day insert 200,000 records into a table, each record contain date/product/company/inventory,
so it will have 300,000,000 records up to now,

sounds terrible... (or is it the usual case?

)
2) It will have two tables(for tracing issues):
Table Product - each day insert 1000 records, each record contain date/product/[a string contain 200 company's inventory]
Table Company - each day insert 200 records, each record contain date/company/[a string contain 1000 product's inventory]
& it need do some programming to extract the string on-the-fly.
Is there any better solution? Thanks.