ADSM-L

Re: List of archives

2007-01-04 11:46:46
Subject: Re: List of archives
From: Richard Sims <rbs AT BU DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 4 Jan 2007 11:45:50 -0500
On Jan 4, 2007, at 11:30 AM, Alexander Verkooijen wrote:

Hi,

Something like this should provide a list of all archives:

select node_name,description from archives group by
node_name,description

But like you said it will probably take a very long
time to complete. ...

Listing all Archives (or Backups) is a *very* expensive "fishing
expedition".  If you *must* do this from the server (rather than more
efficiently, from the client), then try to limit it to subsets that
you really need, where taking advantage of Keyed columns should
substantially speed the query.

Do    select * from syscat.columns where TABNAME='ARCHIVES'

to see the table column definitions, where columns having
INDEX_KEYSEQ entries are keyed, and render more efficient searches in
a Select.

   Richard Sims

<Prev in Thread] Current Thread [Next in Thread>