Título: INDICES SOBRE TABLAS Publicado por: RULZY en 16 Junio 2011, 04:03 am HOLA ESTOY CREANDO INDICES SOBRE TABLAS PARA OPTIMIZAR LAS BUSQUEDAS Y LAS TABLAS SON LA SIGUIENTES:
Ciudades(nomCiu, habCiu, alcCiu) Plantas(codPlan, nomPlan, dirPlan, tipoPlan, nomCiu) Sectores(numSec, codPlan, dscSec, nivelSec, cntPerSec) Generadores(codGen, dscGen, kwGen, fchInst, cicGen, cicUtilizGen, numSec, codPlan) Mantenimiento(numMant, codGen, fchMant, dscMant) Componentes(numSerComp, dscComp, stkComp) Gen-Comp(codGen, numSerComp) Proveedores(codProv, nomProv, dirProv, telProv) Prov-Gen-Comp(codProv, codGen, numSerComp, fecha, cant) Y LOS INDICES Q ME PARECEN SER CORRECTOS: create index I1 on SECTORES(codPlan); create index I2 on MANTENIMIENTO (codGen); create index I3 on GEN_COMP (codGen); create index I4 on PROV-GEN-COMP (codProv); ESTARAN BIEN? ME FALTARA ALGUNO O SORBARA ALGUNO? Título: Re: INDICES SOBRE TABLAS Publicado por: Shell Root en 16 Junio 2011, 04:24 am WTF yo no se casi de esto, pero acaso los indices no son como un filtro?
Título: Re: INDICES SOBRE TABLAS Publicado por: RULZY en 16 Junio 2011, 04:59 am Y BUENO SI FITLRAS NO TIENES QUE RECORRER TANTOS DATOS Y EL RESULTADO ES UNA BUSQUEDA MAS OPTIMA
|