Last post May 17, 2016 01:13 AM by EastCoder
May 16, 2016 10:29 AM|EastCoder|LINK
Now, there is a situation as below:
1. there are many many spiders to search famous books from internet and download, save the books on a machine by using FTP.
2.only one machine used to store.
3.all the books(>1TB) are stored in the same folder--we named "Novel"(just only one)
4. because of above cases, it's very slow to open the folder("Novel").
so, who can give me a mature solution to resolve the situation?
PS：Now i want to separate the books to other machines by following the first-name of the book!!! who can give me other suggestions?
thanks in advanced!!!
May 16, 2016 10:45 AM|mr.rahulmaurya|LINK
Put the directory name and information into the database table and populate directory listing from this table. Also You can put file name and details to the other table.
when an user finally hit the file then made url from these two table and user get the book through this ftp url.
May 17, 2016 01:13 AM|EastCoder|LINK
yes, it's a cure , but we don't use DB to store the content of the book. just save the content as .txt on local machine!!
thanks for you, is there any other idea poped up or any useful links for me?