View index rebuild on design replace

Hello all

We recently did a full design replace on a number of large databases. When the users first accessed these databases the server performace was severly hit and it ended up crashing. The indexer was really hammering the server.

We’re trying to work out what was the cause as we’ll need to do this again very soon.

A number of new views were created as part of this design replace. The vasy majority had very few documents in them though.

The question really is…when you do a design replace on a database, are the view indexes rebuilt? If that’s the case then that would appear to be what caused our problems. It’d be useful to know as we could do the design replace out of office hours as usual then run updall -V overnight so the users are fine the next day.

Thanks in advance

K

Subject: View index rebuild on design replace

The view indexes would have been discarded for any views that were modified in the design. That’s because a change in the selection formula or column formulas would require a new index.

Note : Trivial changes like column sizes, colors, etc. would keep the index.

New views, of course, would have no index.

The speed of building an index depends on the number of documents in the database - not the number of documents that end up in the view. This is because the Select statement has to run on all documents in the database to see if they are in the view or not.

Subject: View index rebuild on design replace

Hi,No, the view indexes are not rebuild, when you change the design of the view. In your case I would suggest, that you create an agent that runs after the design process. That agent would get one view after the other and gets the first (or the last) document in the view. In that case, the server would build one view index after the other. That should do the trick. If you are switching from R5 view designs to ND6 designs, it would be a good thing to create from scratch all the views. A while ago we had that problem, until we realised, that the index of a completely new view was up to 10 times smaller then an index from an old R5 view. It took ages to rebuild that index, sometimes up to 10 hours. We created totaly new views and that solved that problem.

I wonder why your updall process did not update the index. Should have …

Hope that helps.

cti

Subject: View index rebuild on design replace

Hi,

you are absolutely correct. If a view element is modified -which a design replace may do-, the view needs to be rebuilt. However, if you do a design refresh, and a view element is not modified, that view needs not to be rebuilt. Even just signing an otherwise unmodified view is considered a modification of the view, so it needs to be rebuilt.

Best regards
Mario Varchmin