Re: Partitioning
Posted by: Ahmad Sakhi
Date: April 22, 2016 06:59PM

Thanks Rick. Really appreciate it.

This table is mainly and only for lookup (SELECT), through the application.

There could be INSERTS, but that would happen outside the application and could be extremely rare. And certainly no DELETE. Again, if there's any at all, then it would be outside the application and very very rarely.

So, if I understood correctly, the better option would be plan B. Because my WHERE clause will always contain URI_CM='String value.

A side question: I am just thinking a head of myself on how to effeciently load these data from these set of CSV files?

I can put this script in a shell script to loop through my folder and sweep all CSV files and load one by one. But, there are around 9 MILLION CSV files. I am wondering if this is my only option? And if there are any advise and suggestion I need to take into considerations. Thanks again Rick. Appreciate it.





mysql -uadmin -ppassword --local_infile=1 mydb -e "LOAD DATA LOCAL INFILE 'C:\DATA\file_0001.csv' INTO TABLE book_tbl FIELDS TERMINATED BY '\t' (ID,SCORE,URI_CM,URI,START_CM,END_CM,TEXT_1,TEXT_2)"

Options: ReplyQuote


Subject
Written By
Posted
April 19, 2016 12:29PM
April 20, 2016 11:34PM
April 21, 2016 07:47AM
April 22, 2016 06:41PM
Re: Partitioning
April 22, 2016 06:59PM
April 23, 2016 05:11PM
April 25, 2016 09:27AM
April 30, 2016 05:08PM
May 04, 2016 11:41PM
May 09, 2016 09:18AM
May 10, 2016 10:15AM
May 11, 2016 08:11AM
May 17, 2016 07:49AM
May 23, 2016 03:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.