BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.5 support => Topic started by: Temar on August 03, 2007, 04:41:03 am

Title: useing whois Alot more than needed
Post by: Temar on August 03, 2007, 04:41:03 am
i did a !online
and useing the Statistics module with a few modification to give more details
i got this
Quote
Leetboss2 [2007-08-03 02:36:11]   [GROUP]   [MSG]   [Leet] Janevona: !online
Total Count for Whois || Lookup ||  || Atillafex3 : 23741
Count: 1
Total Count for Whois || Lookup ||  || Atillafex : 23742
Count: 1
Total Count for Whois || Lookup ||  || Atillafex2 : 23743
Count: 1
Total Count for Whois || Lookup ||  || Atillafex4 : 23744
Count: 1
Total Count for Whois || Lookup ||  || Atillafex5 : 23745
Count: 1
Total Count for Whois || Lookup ||  || Atillafex6 : 23746
Count: 1
Total Count for Whois || Lookup ||  || Atillamule2 : 23747
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox10 : 23748
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox2 : 23749
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox3 : 23750
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox4 : 23751
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox5 : 23752
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox6 : 23753
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox8 : 23754
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox9 : 23755
Count: 1
Total Count for Whois || Lookup ||  || Atillatus : 23756
Count: 1
Total Count for Whois || Lookup ||  || Hireclaim : 23757
Count: 1
Total Count for Whois || Lookup ||  || Atillafex3 : 23758
Count: 1
Total Count for Whois || Lookup ||  || Atillafex : 23759
Count: 1
Total Count for Whois || Lookup ||  || Atillafex2 : 23760
Count: 1
Total Count for Whois || Lookup ||  || Atillafex4 : 23761
Count: 1
Total Count for Whois || Lookup ||  || Atillafex5 : 23762
Count: 1
Total Count for Whois || Lookup ||  || Atillafex6 : 23763
Count: 1
Total Count for Whois || Lookup ||  || Atillamule2 : 23764
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox10 : 23765
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox2 : 23766
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox3 : 23767
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox4 : 23768
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox5 : 23769
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox6 : 23770
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox8 : 23771
Count: 1
Total Count for Whois || Lookup ||  || Atillatrox9 : 23772
Count: 1
Total Count for Whois || Lookup ||  || Atillatus : 23773
Count: 1
Total Count for Whois || Lookup ||  || Hireclaim : 23774
Count: 1
Total Count for Whois || Lookup ||  || Hiker : 23775
Count: 1
Total Count for Whois || Lookup ||  || Snuskepews : 23776
Count: 1
Total Count for Whois || Lookup ||  || Phyzzedout : 23777
Count: 1
Total Count for Whois || Lookup ||  || Drainroots : 23778
Count: 1
Total Count for Whois || Lookup ||  || Hackedout : 23779
Count: 1
Total Count for Whois || Lookup ||  || Nukedout : 23780
Count: 1
Total Count for Whois || Lookup ||  || Tankedout : 23781
Count: 1
Total Count for Whois || Lookup ||  || Techedout : 23782
Count: 1
Leetboss2 [2007-08-03 02:36:11]   [GROUP]   [MSG]   [Leet] Leetboss2: 5 members online in Guild. 0 members in Privategroup. :: [link]click to view[/link]
There is only 5 members online
yes the alts info is there but its a link and the name of there main
i think the reason for all the whois is because of Checking all Alts for Security Level
Im sure you can come up with something better :D
Title: Re: useing whois Alot more than needed
Post by: Temar on August 03, 2007, 04:43:54 am
Altho is apears to do it x2 for each alt
Title: Re: useing whois Alot more than needed
Post by: Temar on August 03, 2007, 04:45:53 am
Not sure why it does it twice .. might be somthing else too
but for the security level
maybe u should cache it / add it the the online table
Title: Re: useing whois Alot more than needed
Post by: Temar on August 03, 2007, 04:58:24 am
Then again after thinking more , its a whois check x2 on all alts when not needed...
the security level isnt in whois its in user...
why so many ?
Title: Re: useing whois Alot more than needed
Post by: Alreadythere on August 03, 2007, 10:58:16 am
Whois lookups are cached for some time in the whois core module to save table lookups, so it looks worse then it actually is.
Title: Re: useing whois Alot more than needed
Post by: Temar on August 03, 2007, 02:20:27 pm
i just find it odd that its doing a whois lookup for each alt twice
when no alt whois info is used in the online screen
Title: Re: useing whois Alot more than needed
Post by: Alreadythere on August 05, 2007, 07:35:22 pm
Flexible security does a whois lookup, though it should do that only once and cache the results afterwards for some time.

Anyways, added some more caching to the security module, it should only query each player's alts once for some time. Next time it'll use the cached information.
SimplePortal 2.3.7 © 2008-2024, SimplePortal