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.
- 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
Post a Comment