J. Chomel
J. Chomel

Reputation: 8395

How to restrain my ClearCase view to only a subset of the dir of one of the vobs?

My Clearcase dynamic view has to access several vobs. But one of the vob has very large number of directory, so I wandered if I could tune my dynamic view to access only a list of directories of that specific vob - believing this could improve performances of my searches.

How do I do?

Say here are my vobs below, and in the last, the list of dir I want:

vob1
vob2
large_vob
   /dir17
   /dir31
   /dir53

Here is my basic view:

element * CHECKEDOUT
element * /main/LATEST
element -directory * /main/LATEST

Shall I go in some direction like the below?

element /vob1/* CHECKEDOUT
element /vob1/* /main/LATEST
element -directory /vob1/* /main/LATEST
...
element /large_vob/dir17/* CHECKEDOUT
element /large_vob/dir17/* /main/LATEST
element -directory /large_vob/dir17/* /main/LATEST
...

But I got error

Encountered an improper argument

... plus this above looks to me like hard to maintain. Is there any other way, like a context inside of view declaration? --- Ideally I would like to only work with one view.

I am not admin, I would also like avoiding per-user read restriction or anything.

Any help appreciated!

edit

Restraining the number of directories in my view's vob did improved full-vob label search performance.

Upvotes: 1

Views: 73

Answers (1)

VonC
VonC

Reputation: 1323653

Another option that you can try is to apply some "none" version section to your folder in your config spec.

If the folder is not selected (version "none"), then it won't try to select (or, hopefully, to search) its content.

element /large_vob/dir17/... -none

(no need for '/*' here: I want to not select the folder itself: see "How to hide folders except mentioned in config spec?")

The OP J. Chomel reports in the comments making it work with adding the expected directories like:

element /large_vob/dir17/... /main/LATEST
element /large_vob/dir18/* -none
element * /main/LATEST

The order of a config spec is important.

Upvotes: 1

Related Questions