Timo Boehme wrote: > Hi, > > deleting a large number of annotations from index via > Annotation.removeFromIndexes() takes a very long time (e.g. 200.000 out > of 700.000 took 9 minutes - normally I would expect this operation to be > finished after a couple of seconds).
The whole implementation is geared towards adding annotations, not deleting them. Yes, removing annotations from indexes is slow. Try removing the annotations in reverse order. From knowing the implementation, I suspect that would go faster. > Is there another possibility to do a 'bulk deletion' or clearing and > recreating an index? No, but it would probably be easy to implement an operation to drop an entire index, or to drop the index for specific types. --Thilo > > --Timo > > Timo Boehme > OntoChem GmbH > H.-Damerow-Str. 4 > 06120 Halle/Saale > T: +49 345 4780472 > F: +49 345 4780471 > [email protected] > > _____________________________________________________________________ > > OntoChem GmbH > Geschäftsführer: Dr. Lutz Weber > Sitz: Halle / Saale > Registergericht: Stendal > Registernummer: HRB 215461 > _____________________________________________________________________
