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 -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -