Jump to content

Technique for more mysql queries ?


Rommeo

Recommended Posts

hi

 

As i m a newbie, i m wondering the technique for the pages that makes more than one mysql query. I think it  slows down the server when there are many people are entering the web site. So what's the technique for to do this ?

 

Let me explain clearly ;

i have an index page.

my index page should be like this

news ( query from news table )(last 10 news)
events ( query from events table ) ( last 5 chosen events )
attraction ( query from attraction table ) ( last 5 chosen events )
latest posts ( query from posts table )( last 10 posts )

This is the only index page's main section. There are also "latest comments" & " new users" queries etc. So should i make more than 4 queries for to do this ? Or is there any other way for to solve this problem ( or for to load the page faster lets say )

 

Thanks in Advance.

Link to comment
Share on other sites

it wont take to load much time unless you use simple scripting and if your server can handle that traffic, take for example this forum, everytime you go into a category it must retrieve all that data and display it to us all...it doesn't take that much to load, same must happen with your website  ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.