MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

Re: Deleted records and index size



fixed

I think the answer is "it depends" :)

A standard index on the i is a binary radix index, just like other
platforms. A page of data would contain many keys. So if you delete one
in the middle, you'd obviously have a "empty space" and not immediately get
any space back.

However, unlike other platforms, the OS automatically handles "periodically
reorganize or rebalance the index structures...as part of the normal index
maintenance processing that occurs as key values are being inserted,
updated, and deleted."
per:
http://www-304.ibm.com/partnerworld/wps/servlet/ContentHandler/stg_ast_sys_wp_db2_i_indexing_methods_strategies

I'd seriously doubt the OS would reorganize the index of a billion record
table after you delete a single row. But I don't know of any documents
that tell when it would.

Charles



On Mon, Feb 3, 2014 at 1:57 PM, Alan Campin <alan0307d@xxxxxxxxx> wrote:

Does anybody know. If you delete a record, does the index size decrease?

I am getting indications both way, that it keeps the deleted record in
index and logical indexes and other stuff that seems to say it deletes the
record from the indexes.

I found IBM's information on calculating index size but it only says number
of records and nothing about deleted record.

It would seem logical that it would not keep an entry in the index.

Anyway, thanks. .
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact