× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: accessing the records in a history file
  • From: "David Morris" <dmorris@xxxxxxxxxxxxx>
  • Date: Fri, 22 Dec 2000 09:47:25 -0700

Al & Booth,

Encoded Vector indexes contain more than on-off bits for selected records.  
That is 
what is known as a bit-mapped index.  The confusion is probably that an EVI is 
often 
used to improve the build time of a bit-mapped index.  An EVI contains two 
arrays.  
One is a table containing key values, an integer code (the vector), a count for 
the 
key value, and the first and last row containing the value.  The other table 
contains 
the assigned codes (vectors).  The main advantage of this is that the optimizer 
has 
really good information to work from.  Rather than seeing "=" and assuming that 
this 
will include 20% of the records in a file (I am not sure if it is actually 
20%), the optimizer 
can optimize for actual number of records that will be selected. 

I have created quite a few of these when optimizing database selections and 
have yet 
to see a 95% improvement, but 10-20% is common.

David Morris

>>> barsa2@ibm.net 12/21/00 12:44PM >>>
At 07:18 PM 12/21/00 +0000, you wrote:
>What is an Encoded Vector Index?  This is a new term for me.


It's a new type of index, added in a recent release (I think 4.2 otherwise 
4.4), where an index with select omit criteria is created in memory with 
one bit (on or off) signifying that a record is to be selected or 
omitted.  As you typically can get that much memory available, this is 
tantamount to putting the select omit portion of the index totally into 
memory.  If you use SQL, and if you can use this feature, you can drop the 
query portion of time by up to 95%.  (Available only in SQL, not OPNQRYF or 
DDS, because someone in Rochester doesn't give a @#$% about existing 
users.)  An AS/400 first!

Al


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.