Changeset 2608

Show
Ignore:
Timestamp:
06/19/08 18:08:47 (20 months ago)
Author:
mpaschal
Message:

Correct these indexes for efficient search_by_meta() use
BugzID: 80212

Location:
branches/release-40
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/build/mt-dists/default.mk

    r2545 r2608  
    22 
    33PRODUCT_VERSION = 4.2 
    4 SCHEMA_VERSION = 4.0063 
     4SCHEMA_VERSION = 4.0064 
    55API_VERSION = 4.2 
    66 
  • branches/release-40/lib/MT/Object.pm

    r2548 r2608  
    499499        indexes => { 
    500500            $id_field => 1, 
    501             id_type   => { columns => [ $id_field, 'type' ] }, 
    502             id_type_vchar => { columns => [ $id_field, 'type', 'vchar_idx' ] }, 
    503             id_type_vdt => { columns => [ $id_field, 'type', 
    504                 'vdatetime_idx' ] }, 
    505             id_type_vint => { columns => [ $id_field, 'type', 
    506                 'vinteger_idx' ] }, 
    507             id_type_vflt => { columns => [ $id_field, 'type', 
    508                 'vfloat_idx' ] }, 
     501            id_type    => { columns => [ $id_field, 'type' ] }, 
     502            type_vchar => { columns => [ 'type', 'vchar_idx'     ] }, 
     503            type_vdt   => { columns => [ 'type', 'vdatetime_idx' ] }, 
     504            type_vint  => { columns => [ 'type', 'vinteger_idx'  ] }, 
     505            type_vflt  => { columns => [ 'type', 'vfloat_idx'    ] }, 
    509506        }, 
    510507        primary_key => [ $id_field, 'type' ],