![]() |
|
|
Mod Options |
|
#1
|
||||
|
||||
|
added indexes
Have you added any extra indexes to increase performance? I remember Erwin posted some a looong time ago that was a real help to my site. I just wish I could remember what they were.
__________________
Make someone smile today!
No members have liked this post.
|
| Comments |
|
#2
|
||||
|
||||
|
We have added an index to the ipaddress column on the post table to help with IP searches and of course the full text index for full text searching. We have added a few others but I cannot remember them off the top of my head.
No members have liked this post.
|
|
#3
|
||||
|
||||
|
well everything is based on what indexes you really need, as extra indexes do also increase the work a db has to do when inserting/deleting
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#4
|
||||
|
||||
|
Adding one to the IP address in the post table is a must on any large board - I really don't understand why it isn't default.
We have a few others due to some hacks - dateline and lastvisit on posts being two I believe.
__________________
Cable Forum - DigiGuide Please Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. Senior vBulletin Developer : Please do not PM me about custom work - I work for Internet brands and no longer have the time to undertake any. No members have liked this post.
Last edited by Paul M : 17 Mar 2006 at 20:11. |
|
#5
|
||||
|
||||
|
Originally Posted by Paul M
IP is a must for the post table, I agree.
That IP search in admincp is a server killer - I've offloaded it to a slave search server actually. No members have liked this post.
|
|
#6
|
||||
|
||||
|
Only index i've added to my vb database that I remember is the IPadress one too.
But then there's also the indexes that have been added as part of other hack installs and upgrading the board. ![]()
__________________
No members have liked this post.
|
|
#7
|
||||
|
||||
|
i've always wanted to add some extra indexes... but feared what would happen during forum upgrades. IP Address searching on our forum is almost a guaranteed server death...
![]()
__________________
KEVLAR www.bimmerforums.com No members have liked this post.
|
|
#8
|
||||
|
||||
|
What eactly do you do to add an index? I'm assuming you are just adding a field to the table and specifying "index" or is there something else that has to be done for it to be beneficial?
Kevlar, I doubt adding it would effect upgrades. I have several custom fields added to different tables in my DB and upgrading has never been a problem.
__________________
I did think of asking you to join my little scheme, but somehow I knew, 007's loyalty was always to the mission, never to his friends. - 006 No members have liked this post.
|
|
#9
|
|||
|
|||
|
Originally Posted by Paul M
How does one add an index to the IP address in the post table?
No members have liked this post.
|
|
#10
|
||||
|
||||
|
ALTER TABLE post ADD INDEX ipaddress
__________________
Cable Forum - DigiGuide Please Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. Senior vBulletin Developer : Please do not PM me about custom work - I work for Internet brands and no longer have the time to undertake any. No members have liked this post.
|
|
#11
|
||||
|
||||
|
Originally Posted by 007
Then my final question is ... why didn't the vB team add an index to that column already (especially since big boards all over suffer from this problem)?
That is the only thing stopping me at this point as it only seems logical to have an index on a column that is frequently used. ![]()
__________________
KEVLAR www.bimmerforums.com No members have liked this post.
|
|
#12
|
||||
|
||||
|
hmm, the question cannot be answered directly
but on the other hand, there are a lot of forums, which don't store the ips, and then and index wouldn't be of use as i posted above, and index also has negative aspects, if it wouldn't you could always index every single field ![]()
__________________
Unfortunatelly i am completely out of vbulletin buisness, so i won't upgrade any of my hacks anymore. Everyone who wants to upgrade my hacks or use part of my codes is allowed to do so, without needing any special permission by me anymore. You just have to mention my full name if you want to reuse some of my work, thats all i ask for. No members have liked this post.
|
|
#13
|
||||
|
||||
|
Originally Posted by Kevlar
Perhaps no one has ever suggested it ?
Originally Posted by Xenon
True, but it wouldn't harm anything.
Originally Posted by Xenon
While indexing every field would ot make sense, there are a number of places that really could use them. The extra speed and saved resources on a select are usually worth the small amount of extra overhead when a record is added, and the space taken up. IMO people are often too afraid to add indexes when they really shouldn't be.
__________________
Cable Forum - DigiGuide Please Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. Senior vBulletin Developer : Please do not PM me about custom work - I work for Internet brands and no longer have the time to undertake any. No members have liked this post.
|
|
#14
|
||||
|
||||
|
Originally Posted by Xenon
The default setting on vBulletin is to store IPs and not display them publicly. Most people don't change default settings so an index could help everyone.
Originally Posted by Paul M
Couldn't put it any better!
No members have liked this post.
|
|
#15
|
||||
|
||||
|
Index added ... no ill effects found (other than me being unable to wait patiently while the alter table command ran). IP searches are much faster now... almost instantaneous.
__________________
KEVLAR www.bimmerforums.com No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 14:04.





