Support Forums

Database Indexes Mod

This is a discussion on Database Indexes Mod within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, index on a database table should produce quick answers on sql queries. I have monitored the mysql database and ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 01-06-2009, 11:03 AM   #1
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 16
ombre is on a distinguished road
Default Database Indexes Mod

Hi,

index on a database table should produce quick answers on sql queries. I have monitored the mysql database and found that on few tables the indexes
don't exists. So i added the indexes. Here is the code:

Code:
create index pid_index on class_prodimages (pid);
create index pid_index on class_favorites (pid);
create index state_index on class_users (state);
create index city_index on class_users (city);
create index slug_index on class_categories (slug);
create index name_index on class_categories (name);
create index parentid_index on class_categories (parent_id);
create index section_index on class_listings (section);
create index expiration_index on class_listings (expiration);
create index display_index on class_listings (display);

What other members think about this, and do you have also improved the sql queries ? Please share your experience. Thanks.
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website

Last edited by ombre; 01-06-2009 at 11:11 AM.
ombre is offline   Reply With Quote
Old 01-06-2009, 12:16 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Thanks for sharing. I will be sure these are added to v4.1
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataBase help corazon7 Templates, HTML, CSS, and Design Help 2 11-26-2008 06:28 PM
Database Changes seymourjames Modules / Plugins / Modifications 0 10-05-2008 04:52 AM
Database goyadi Technical Support 1 09-08-2008 10:34 PM


All times are GMT -4. The time now is 06:57 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0