+ Reply to Thread
Results 1 to 15 of 21
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: 300 queries in forum permissions?!

  1. #1
    Senior Member Billy is on a distinguished road
    Join Date
    May 2001
    Posts
    107

    300 queries in forum permissions?!

    I don't know if there is any truth to this, but I was told somewhere that the forum permissions area in the admin cp took 300 queries with 8 forums and when adding more forums, the query count increases.

    IS this true? Because I know that 300 queries to produce a page is NOT good.

  2. #2
    Senior Member The Prohacker has disabled reputation The Prohacker's Avatar
    Join Date
    Apr 2001
    Location
    Dayton, Ohio
    Age
    25
    Posts
    1,208
    To see how many queries, add &explain=1 to the end of the url.

    With the default one forum and one catagory I see 11 total..... And this is 2.0.3, so it could have improved by now, so I highly doubt 300 unless they have a crap load of forums....
    Later,
    The Prohacker

    My Blog | My Work
    One by one, the penquins steal my sanity......

  3. #3
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    The number of queries used to generate that page is as follows:
    1 base query.
    2*the number of forums you have.
    1*the number of usergroups you have.

    So say you have 8 usergroups (about standard) and 10 forums. 2*20=20 + 1*8=8 + 1 = 29. Nowhere near 300.

    Admin pages are optimized heavily just as everything else is but sometimes there is no way around a lot of queries (update counters, for example). It is used because the Admin CP is not subject to the foot traffic that your forums are.

  4. #4
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    Originally posted by tubedogg
    The number of queries used to generate that page is as follows:
    1 base query.
    2*the number of forums you have.
    1*the number of usergroups you have.

    So say you have 8 usergroups (about standard) and 10 forums. 2*20=20 + 1*8=8 + 1 = 29. Nowhere near 300.

    Admin pages are optimized heavily just as everything else is but sometimes there is no way around a lot of queries (update counters, for example). It is used because the Admin CP is not subject to the foot traffic that your forums are.
    wow

    let's see for me that would be

    1 + (2 x 140 forums) + (1 x 14) = 295 queries

    so billy i doubt having only 8 forums would amount to 300 queries unless you had 100s of usergroups
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!

  5. #5
    Senior Member Chen is on a distinguished road Chen's Avatar
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    8,395
    Originally posted by eva2000
    wow

    let's see for me that would be

    1 + (2 x 140 forums) + (1 x 14) = 295 queries

    so billy i doubt having only 8 forums would amount to 300 queries unless you had 100s of usergroups
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

  6. #6
    Senior Member Kaizen has disabled reputation
    Join Date
    Aug 2001
    Age
    49
    Posts
    1,884


    How does your server take it!?
    Email: chris@thegratwicks.com
    Site: Under Construction

  7. #7
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    takes it easily

    171 queries/second on searchindex reindexing - check it out http://vbulletin.com/forum/showthrea...hlight=queries

    remember that page isn't regularly accessed only when adding new forums or loading that page..
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!

  8. #8
    Senior Member Kaizen has disabled reputation
    Join Date
    Aug 2001
    Age
    49
    Posts
    1,884
    lol

    you have to re--index overnight

    hehehehhe

    never taken me more than 20 minutes.
    Email: chris@thegratwicks.com
    Site: Under Construction

  9. #9
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    yeah that's because i had 452,000+ posts 29,000 threads and wanted to reindex

    with min 3 and max 17 characters

    now i have 9+ million records in searchindex

    also vB ain't the only thing on my server.. i have several live sites which get as much traffic or more than my vB forum
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!

  10. #10
    Senior Member Kaizen has disabled reputation
    Join Date
    Aug 2001
    Age
    49
    Posts
    1,884
    *me waits for eva's server to crash

    *me thinks, not long now !!!
    Email: chris@thegratwicks.com
    Site: Under Construction

  11. #11
    Senior Member Kaizen has disabled reputation
    Join Date
    Aug 2001
    Age
    49
    Posts
    1,884
    oh and btw

    isn't your sig getting a little big

    I got a pm the other day from some user asking me to shorten.

    I agreed and did !

    But yours just gets bigger everyday - lol
    Email: chris@thegratwicks.com
    Site: Under Construction

  12. #12
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    LOL... my sig's a permanent fixture around here take a read http://vbulletin.com/forum/showthrea...threadid=23421
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!

  13. #13
    Senior Member Kaizen has disabled reputation
    Join Date
    Aug 2001
    Age
    49
    Posts
    1,884
    hehehe



    btw you took the link out to calculate hits on pages

    mysql hit counter or something

    whats the link for that ?

    Also:

    I heard you were talking about english colleges/uni etc.

    R u coming here for your education ?
    Email: chris@thegratwicks.com
    Site: Under Construction

  14. #14
    Senior Member Billy is on a distinguished road
    Join Date
    May 2001
    Posts
    107
    Are you guys looking at the right place, he said there were 10 groups and 8 forums. He said in forumpermissions that it was 300 queries.

  15. #15
    Senior Member Billy is on a distinguished road
    Join Date
    May 2001
    Posts
    107
    Oh, I don't know if this matters, but he said that some of your queries aren't counted in the count, so he added those to the count and that is where he got the 300 from.

+ Reply to Thread
Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. Setting Permissions - Forum vs. Group Permissions
    By websapien in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Tue 22nd Jun '04, 11:43am
  2. Help with SQL Queries to set Forum Subscriptions
    By Ocean in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 4
    Last Post: Fri 7th May '04, 11:51am
  3. Mods can view private forum even after forum permissions changed.
    By TheGunOwner in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 5
    Last Post: Wed 30th Apr '03, 8:50pm
  4. Why are forum permissions affected by a change in forum name? Is there a fix?
    By mishkan in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 7
    Last Post: Thu 15th Aug '02, 1:42pm
  5. Optimization for single forum search queries
    By roy7 in forum vBulletin 2 Suggestions and Feedback
    Replies: 0
    Last Post: Sat 28th Apr '01, 10:27am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts