Queries on forumhome

Discussion in 'vBulletin Discussions' started by Michael, Jul 31, 2009.

  1. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    How many queries on average does everyone have on their homepage in vbulletin? :)

    I make that sound like a competition for the highest lol but I would like to know what is too many and how many others have running.
     
  2. Shadab

    Shadab Newcomer

    Joined:
    Jul 25, 2009
    Messages:
    16
    Likes Received:
    0
    First Name:
    Shadab
    Not Logged-In:

    Homepage: 6 queries
    Forumhome: 9 queries​

    Logged-in as Admin:

    Homepage: 8 queries
    Forumhome: 13 queries​

    :)
     
  3. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    How do you have them that low? I thought default vbulletin ships wth around 25 :D
     
  4. Bundy

    Bundy Admin Talk Staff

    Joined:
    Apr 19, 2005
    Messages:
    842
    Likes Received:
    36
    Location:
    Boston
    Damn I thought I was doing well when I got it down to 16 logged in lol

    I think it is at 10 not logged in
     
  5. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    How can you get them that low?

    Our teen forum has 29 queries on the home loggedin, im not sure how to see how many logged out.
     
  6. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    I think people put too much emphasis on "number of queries". It really is a meaningless number. If you are using a properly configured and optimized MySQL server, it should be capable of running over 20,000 queries per second. Unless you have a few thousand people online at a time, you're not going to hit that. With newer quad-core and octo-core servers, you can probably get 40,000-60,000 queries per second. While this is below what you can get out of Oracle or MS SQL Server (both are over 100,000 queries per second), it isn't something to laugh at.

    You can write one bad query that takes over a second to process. Or you can write 10 optimized queries that process in mere milliseconds. If your page is processed in less than 300-400 milliseconds, most people aren't going to notice. More time will be spent handshaking connections to download images.

    BTW, the default forumhome for vBulletin has 8-14 queries depending on the features enabled. I have seen it lowered to as few as 4 with heavy caching.
     
  7. Shadab

    Shadab Newcomer

    Joined:
    Jul 25, 2009
    Messages:
    16
    Likes Received:
    0
    First Name:
    Shadab
    I've tuned off some features for guests like the list of logged-in members on forumhome. They don't need to see that.

    So true. :)
     
  8. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    <---- Embarrased...

    i STILL dont understand what a Querie does exactly..lol...
     
  9. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    Basically speaking, a query is a question to the database, e.g. What user has the userid of 16?

    Or a request for data e.g.: Show me all users that registered between 06:00 and 13:00 hours on May 15th, 2009.

    Or you can use it to tell the database to store information for you, e.g. Add a new user with the username of bob and the password of p4ssw0rd.

    The actual language used is a little more technical but the same basic principle applies. It is how an application gets information from the database. Every page you view and form you submit runs multiple queries.
     
    2 people like this.
  10. Yoshi

    Yoshi Regular Member

    Joined:
    Jun 9, 2005
    Messages:
    219
    Likes Received:
    11
    Location:
    UK
    How do I find out how many queries I have? :o
     
  11. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    I use the KX or ZH debug mod from vb.org as well as KX or ZH template cache for quickly caching uncached templates :)
     
  12. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16

    ohhh...i get it...cool...thanks man...
     

Share This Page