mysql - http vs sql queries -


i have big problem deciding approach take, have many pages on site uses tabs. example page 5 tabs (horizontal tabs).

now every tab takes data different table in db, have 2 option see: 1. when page load, make 5 mysql queries, , load data 5 tabs @ once.

  1. make 1 mysql query when first page load, , load ajax php script everytime user click on tab. php script generate 1 sql query, , generate 1 http request.

i'm using apache. think?


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -