Skip to content

Instantly share code, notes, and snippets.


Christopher Huemmer chris-hmmr

  • Freelance
  • Berlin
View GitHub Profile
chris-hmmr / MongoDbXdbCollectionCleanupManager.cs
Last active Apr 12, 2021
This class can be used to clean up corrupted events and contact facets (holding very long exceptions) for xDB interactions stored in MongoDB. Code was tested and used for Sitecore 9.1 initial
View MongoDbXdbCollectionCleanupManager.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation.Maintenance.Logging;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Driver;
using Sitecore.Configuration;
namespace Foundation.Maintenance.xConnect