NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
wrong indexes (Score:2)
On second thought you probably should have mu
Ilya Martynov (http://martynov.org/ [martynov.org])
Re:wrong indexes (Score:2)
Why the multi-column index? (if you see my response above, the index on affid was enough to solve this). The multi-column index on affid and commpaid generates the following:
A single index on just affid generates this:
The single column index scans fewer rows (not sure why) and reduces the query to .15 seconds from the .30 with the multi-column indexes. Either, of course, is a vast improvement :)
Reply to This
Parent
Re: (Score:2)
Ilya Martynov (http://martynov.org/ [martynov.org])
Re: (Score:2)
It is a boolean value, so just zero or one. And yes, I was researching 'rows' in the past as a means of easily identifying after the fact whether or not a table had records added or deleted and I recall that this value is indeed not always completely accurate. Sometimes merely altering data seemed to change that value.
Re: (Score:1)