Changeset 164 for trunk/install


Ignore:
Timestamp:
04/18/2006 06:10:06 AM (6 years ago)
Author:
cirrus
Message:

Optimization: Added 3 key index on the links table.
Optimization: Changed the db_data function in the table class, to avoid a duplicate query.
Thanks to Winner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/schema.sql

    r156 r164  
    107107  `info` text, 
    108108  PRIMARY KEY  (`id`), 
    109   KEY `node_id` (`node_id`), 
    110   KEY `peer_node_id` (`peer_node_id`), 
     109  KEY `node_id` (`node_id`,`type`,`status`), 
     110  KEY `peer_node_id` (`peer_node_id`,`type`,`status`), 
    111111  KEY `type` (`type`), 
    112112  KEY `status` (`status`), 
    113   KEY `peer_ap_id` (`peer_ap_id`) 
     113  KEY `peer_ap_id` (`peer_ap_id`,`type`,`status`) 
    114114) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    115115 
Note: See TracChangeset for help on using the changeset viewer.