Not being a Xindice developer, I am a developer who uses Xindice, my guess is, yes. The problem, as I see it, is that at some point during the lifetime of the collection it makes sense to recover some of the space. Assuming of course that you are not going to reuse it right away. Hard for Xindice to know what your intentions are ;-). So as I was saying, at some point, it is time to recover/garbage collect the empty space. The first step is that it has to rebuild the binary tree that is the collection, in a way to leave empty space at the end of the file and then truncate the file. This has to be done when you don't need the collection or it has to be done continually.
My advice would be to: 1) Eat the space (probably not acceptable) 2) Create a temporary collection, muck around with it and transfer the documents to a permanent collection. 3) Every now and then, copy the contents to a new collection, delete the old, and rename the new back. Hard to tell when this should happen... HTH, Mark Daniel Kroeger wrote: > OK, wonderfull........let's buy some new harddisks! > > If I empty the complete collection, I can delete it anyway and free the > space. > But what if just delete 250.000 documents out of 500.000. > Do I have to live with 1 GB of unused but not useable space, or is there > another possibilty? > > Thanks > Daniel > > > -----Ursprungliche Nachricht----- > > Von: Mark J. Stang [mailto:[EMAIL PROTECTED] > > Gesendet: Donnerstag, 13. Juni 2002 16:29 > > An: xindice-users@xml.apache.org > > Betreff: Re: Collection size after deleting > > > > > > If I remember right, Xindice doesn't free space when you delete > > documents. > > > > Mark > > > > Daniel Kroeger wrote: > > > > > Hello, > > > > > > is it normal, that the size of a collection doesn't shrink if you delete > > > documents: > > > > > > I have a collection which has 12.288 bytes after its creation. > > > Than I add 100.000 documents, make an XPath query and delete > > the documents. > > > But the collection stays at 437.067.776 bytes.............which > > is IMHO a > > > bit too much for an empty collection. > > > > > > Daniel > > > > -- > > Mark J Stang > > Architect > > Cybershop Systems > > > > -- Mark J Stang Architect Cybershop Systems
begin:vcard n:Stang;Mark x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Mark Stang end:vcard