List:General Discussion« Previous MessageNext Message »
From:Mindaugas Date:October 18 2006 10:52am
Subject:Re: RE: How to rewrite query
View as plain text  

>I agree that individual fields have relatively few possible values -
> hopefully, when those are combined in a multi-column index, he will
> have a greater number of unique combinations, gaining more out of the
> index.  That's why I suggested putting stype and Is_id as the first
> two fields in the index (though I guess I did not mention that!).
> 
> stype had 6 values, Is_id had 5, so he may have up to about 30
> combinations as the first two fields, which should be enough to help a
> lot.

  ls_id is evenly distributed but stype is not. But thought is interesting.

  And one question. I mentioned that update:select ratio is 3:1. There are
no deletes and inserts. Also update does not touch ls_id and stype fields.
Is there index updating overhead then?

  Mindaugas

Thread
How to rewrite queryMindaugas17 Oct
  • Re: How to rewrite queryDan Buettner17 Oct
  • Re: How to rewrite querymos17 Oct
    • RE: How to rewrite queryJerry Schwartz17 Oct
      • Re: RE: How to rewrite queryDan Buettner17 Oct
        • RE: RE: How to rewrite queryJerry Schwartz17 Oct
          • RE: RE: How to rewrite queryWilliam R. Mussatto17 Oct
            • Re: RE: RE: How to rewrite queryDan Buettner17 Oct
            • RE: RE: How to rewrite queryJerry Schwartz17 Oct
    • Re: RE: How to rewrite queryMindaugas18 Oct
      • Re: Re: RE: How to rewrite queryDan Buettner18 Oct
  • Re: How to rewrite queryMartin Skold17 Oct