Why does a 4GB nsf blow up to 21GB over night?

Hi

We have a database (db-1) which is around 4GB, after compaction. This db is part of a cluster. Its replica (db-2) is (on another server in the cluster) remains at about 21Gb even after compaction.

A few days ago, db-1 suddenly shot up to 21GB and now even after compaction it stays at 21GB. The number of documents has stayed the same and the dbs are not full text indexed.

Why does this happen and how can we compact them down to the original sizes?

With thanks

Bizhan

Subject: Why does a 4GB nsf blow up to 21GB over night?

Hi

I don’t say which kind of activity is going on the server.

Are there a lot of daily deletions?

→ lots of deletion stubs

are there many large views? …

→ lots of disk space going to indices

??

regards

Jesper Kiaer

http://www.jezzper.com

Subject: Why does a 4GB nsf blow up to 21GB over night?

Do you have a number of complex views in the database? It could be that the view indexes in the 4GB database have now been updated, so the DB size has increased.

A shot in the dark …

Kiers

Subject: Why does a 4GB nsf blow up to 21GB over night?

Hi Kieren and Jesper

There are “not” a lot of deletions. There are many views and some are very large. Indexing is a problem and has impacted performance. We are going to make some design changes to overcome the index problem.

However, why would the view index size suddenly take a database from 4Gb to 21GB, bearing in mind that the problem has only just happened but the large views have been there for a long time!? And how do I check the view index size?

Thanks

Bizhan

Subject: RE: Why does a 4GB nsf blow up to 21GB over night?

I have seen this at a client once where there were a bunch of views but they were not indexed automatically. Somebody wrote a script which went to each view, I can’t remember why, but every view index got built and the size of the database grew to four times the size it had been. Is it possible some of the large, complex views were not automatically index and have now been touched?

Subject: RE: Why does a 4GB nsf blow up to 21GB over night?

Yes, Ben, it is possible and very likely to be the case. I have to check all the views and set them to autoindex I suppose.

How can I check the view index size?

Many thanks

Bizhan

Subject: How to check view sizes

There’s two ways:

(1) Open the Notes log (log.nsf) on the server, open “Usage” and then “by Size”. Then open a document.

(2) Run the Administrator, open the server, click “Files”, then right-click on a database and choose “Manage Views…”.

Subject: RE: How to check view sizes

Erik

Many thanks. I’ll check it out.

Thanks again.

Bizhan