Hi guys,
I remember reading about a year ago that due to the way collections are now stored, one of the benefits of RavenDB 4.0 was it was very fast to purge all documents in a collection. Or maybe I was dreaming?
Previously we had something that would delete using DeleteByIndex on Raven/DocumentsByEntityName using the 'Tag' of the entity name. This would be done in a loop and waiting for WaitNonStaleResults until we were certain that the collection was 100% clear. Painful but it worked.
I can see examples in the documentation that use DeleteByIndex using a where clause and this is probably ok but if there is a really fast way that leverages the optimized thing potentially discussed a while ago that would be better.
We finally started our RavenDB 4.0 migration effort last night which is a bit daunting. We used RavenFS quite a bit and also RavenDB Authorization Bundle extensively for permisions - bit shocked to see that gone last night.
Cheers,
Ian