Pessoal me digam uma coisa: Se eu usar indices compostos, posso ter problemas de performance na minha base? Ex: tenho uma tabela com os seguintes campos
CREATE TABLE agendas ( id_agenda serial NOT NULL, titulo character varying(200) NOT NULL, descricao text, data_inicio_agenda timestamp without time zone NOT NULL, data_fim_agenda timestamp without time zone NOT NULL, CONSTRAINT agendas_pk PRIMARY KEY (id_agenda), CONSTRAINT agendas_titulo_key UNIQUE (titulo), CONSTRAINT agendas_check CHECK (data_fim_agenda > data_inicio_agenda) ) E meu indice: CREATE INDEX indice_busca ON agendas USING btree (titulo, descricao, data_inicio_agenda, data_fim_agenda); Tenho um form onde tenho estes campos do indice para fazer busca na tabela. Ta tudo na boa? ou é campo demais e posso perder performance!!! valeu
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral