On 8/28/2015 8:25 AM, Shawn Heisey wrote:
> Instead, use collection aliasing. Create collections named something
> like foo_0 and foo_1, and update the alias "foo" to point to whichever
> of them is currently live. Your queries and update requests will never
> need to know about foo_0 and foo_1 ... only the coordinating part of
> your system, where you would normally do your core swapping, needs to
> know about those. 

You might also want to have a foo_build alias pointing to the *other*
collection for any "full rebuild" functionality, so it can also use a
static collection name.

Thanks,
Shawn

Reply via email to