Reputation: 9
I need to display country name of 100000 mobile numbers each second. so
Method 1: (Mysq1) store prifix, country name in the database and access
Method 2: (Text file) Store country name in text file. example for Malaysia prefix is 60. so store "Malaysia" in a test file "60.test" to get country name use file_get_contents("country/60.txt")
which method will be fast?
Upvotes: 1
Views: 403
Reputation: 4436
Assuming a 'normal' webserver, You have several options:
I would go for option 1 unless the performance is not enough, then use option 3.
Upvotes: 1