Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 [INDEX] option for admin_mod_dbsetup.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 29 August 2002 :  17:30:28  Show Profile
Does anyone think that a new option for [INDEX] (to create additional indexes) needs to be added to admin_mod_dbsetup.asp

I'm currently writing a mod and I'm finding that dbs files are a bit limiting in their features, so I'll probably have to write a separate asp file to add the tables and values that I need to the database.

I can have a go at writing this addition if I knew it would be added to the base code.

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 29 August 2002 :  17:45:50  Show Profile
You could write a Mod and if the developers like it, I think it will be added.

By the way I will surely use it.
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 29 August 2002 :  19:00:30  Show Profile  Visit Gremlin's Homepage
Not so sure I'm keen on that idea, people need to know what they're doing when setting up indexes, I can see people ending up changing things and making a complete mess of their forums 'performance wise'

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

MotoX
Junior Member

201 Posts

Posted - 29 August 2002 :  21:05:53  Show Profile
Why not just make a mod that optimizes index for Specific Database Engines...

i.e. For MSSQL, it would automatically put clustered indexes where appropriate...
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 29 August 2002 :  21:25:46  Show Profile  Visit burthold's Homepage
You can really kill performance by over indexing or just plain indexing the wrong things. You really need to know how indexing works with each db type before you just blanket apply clustered indexes to everything. I would NEVER run a dbs for a mod that created indexes for me.

Wes
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 30 August 2002 :  04:14:03  Show Profile
The table I'm going to create for my mod only requires two fields.

MEMBER_ID and TOPIC_ID.

It will not require a identity/autonumber field.

I'll be creating an index on MEMBER_ID. so I'll be creating an asp file to create these database tables since mod_dbsetup does not have any opitons for this.
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 30 August 2002 :  04:42:41  Show Profile  Visit burthold's Homepage
I guess its a personal thing. I am a MS-SQL DBA by trade and really like to choose my indexes on tables.

Wes
Go to Top of Page

MotoX
Junior Member

201 Posts

Posted - 30 August 2002 :  08:12:12  Show Profile
quote:
I guess its a personal thing. I am a MS-SQL DBA by trade and really like to choose my indexes on tables.


I never thought about it like that. That's very true, because each person is going to have situations on their forum where the "appropriateness" of indexes is unique.

The mod would still be a nice to have, however I do see the danger of users getting ahold of something like this who do not understand indexes and totally killing performance. How about a mod that Evaluates indexes based on usage? Maybe if you could make one that logs table access similar to what you would do by using profiler to evaluate scans, and then have the mod make recommendations based on the logging?

There would need to be a way to turn logging on and off though as it would obviously kill performance...

Sounds a little complex.

Good thread though.
Go to Top of Page

burthold
Junior Member

USA
426 Posts

Posted - 30 August 2002 :  11:34:09  Show Profile  Visit burthold's Homepage
If it was that easy to do you wouldn't need people like me to do performance evaluations on tables and databases :) It is very complex. Sometimes I feel like index/query tuning is almost an art form. There are some rules basic rules, but sometimes what you think won't help does.

Just my .02$

Wes
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07