This also applies for:

CREATE INDEX t_idx1 ON t (s,whatever);
CREATE UNIQUE INDEX t_idx2 ON t (s,i);

in which case the first index serves a real need.


On Dec 5, 4:11 am, Thomas Mueller <[email protected]>
wrote:
> Hi,
>
> > CREATE INDEX t_idx1 ON t (s);
> > CREATE UNIQUE INDEX t_idx2 ON t (s,i);
>
> You are right, but in any case I wouldn't create two indexes like
> this. Just create the second index. The first index will not help, it
> only slows down insert/update/delete, and increase the database size.
> I will add a feature request for 'automatic detection of redundant
> indexes'.
>
> Regards,
> Thomas

--

You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.


Reply via email to