php - Does the number of remote requests affects performance? -


i have photobook making site , i'm trying improve loading , saving performance.

the photobook making tool displayed in web browser, done in flash, , remote calls database operations done through amfphp.

the algorithm saving photobook says:

foreach(page in photobook){     foreach(component in page){         //make remote call saves component in database     } } 

this means if photobook has 30 pages, 10 components(photos) per page, tool create approximately 300 simultaneous connections without counting uploads connections.

firefox example, seems ready create queue process requests.

does affects performance @ all?

will create queue controls number of simultaneous remote calls?

is worth it?

thank can give me.

every request remote server result in time increase script execution.

3 queries database faster 3 remote requests.

so yes performance heavily impacted 300 remote requests.

best solution either paginate, or serialize of data in xml. though careful xml, if big cause performance issue well.

i think pagination best option.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -