php - Split huge traffic data into multiple database VS multiple table/collection for mysql/mongodb -


i developing php web service http api write , read data to/from database database mysql/mongodb. has 3 select/find() queries , 2 insert queries single table/collection

it called 10,000 times per second asynchronously different clients.

i planing split data multiple table according user name start letter. mean if user name start d demouser, system store data table_d/collection-d , on. option 1

option 1

same database multiple table/collection

database-table_a/collection-a          table_b/collection-b          table_c/collection-c 

option 2

multiple database single table/collection

database-a  table database-b  table database-c  table 

please advice me best way increse speed? thank help

thanks


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -