Hot answers tagged

17 votes
Accepted

Mongo vs SQL Server with Sitecore 9 Update 2

1) Infrastructure MongoDB will introduce new element into infrastructure of your solution. This increases cost of servers, cost of maintenance and at the end complicates the overall solution ...
Peter Procházka's user avatar
15 votes
Accepted

What happens when MongoDB is down?

It's also important to know that while Mongo is not available, analytic data is being collected. Sitecore will store the data to the file system until such time the collection server comes back online....
Derek C's user avatar
  • 783
15 votes

Sizing MongoDB Servers for xDB

Sitecore recommends here the minimum hardware for planning an xDB with Session State as follows: MongoDB 2 Collection database (MongoDB) servers 4 x CPU E5 2650 v2 processors 16GB RAM (the more the ...
Vinicius Deschamps's user avatar
12 votes
Accepted

Is MongoDB a prerequisite to install EXM?

As EXM does not support CMS-only mode, xDB is required to run EXM. See the documentation on all the components that require xDB. When you send an email campaign, the Email Experience Manager (EXM) ...
Diego's user avatar
  • 5,678
11 votes
Accepted

How to handle xDB during a Sitecore upgrade?

To answer your question, really, I feel it's prudent to walk through the deployment steps and call out where places that might be gotchas. I'll finish with a summary of what I would do. Sitecore ...
Pete Navarra's user avatar
  • 14.6k
11 votes
Accepted

What happens if i remove Mongo server from a Sitecore 8 site

There are several things which doesn't work properly anymore. You can disable it in the config. Go to /App_Config/Include/Sitecore.Analytics.config and set Analytics.Enabled to false: <setting ...
Kevin Brechbühl's user avatar
11 votes
Accepted

No contact created in MongoDB when session is closed

I know you have already found the exact solution for your particular case. Still, I'm going to list the steps I normally take when troubleshooting data saving issues in xDB. Hopefully, this can help ...
Dmytro Shevchenko's user avatar
10 votes
Accepted

How can I utilise MongoDB for non-xDB related things in my Sitecore solution?

Utilizing data extension points The first thing I would consider is whether your data can be stored as part of the standard Sitecore entities. Contact The xDB contact has the following fields where ...
Dmytro Shevchenko's user avatar
10 votes

What happens when MongoDB is down?

If the collections database is unavailable, analytics data for a user's session will still be collected and stored in Session. The problem comes when the session times out and Sitecore attempts to ...
LonghornTaco's user avatar
  • 2,536
10 votes

Sitecore 9 xDB Support for MongoDB

Sitecore provides the xDB Data Conversion tool that supports xDB data conversion. This tool will help you in migrating the data from Sitecore Experience Database 8.x to Sitecore Experience Database 9....
Rohit Chopra's user avatar
  • 1,477
10 votes
Accepted

How do you resolve a MongoDB 'connection string is not valid' after upgrading?

The MongoDB driver between the two version changed, which includes a refactoring of the validation for connection strings. Checking with MongoDB.Driver.dll the version details can be seen as the ...
Michael West's user avatar
  • 17.9k
9 votes
Accepted

Is it possible to distribute my xDB MongoDB databases over 3 locations?

Sitecore-specific replica set considerations Your question is partially answered here: What are the best practices for MongoDB replica set latency? That question discusses how latency affects a ...
Dmytro Shevchenko's user avatar
9 votes
Accepted

Sizing MongoDB Servers for xDB

Nonlinear Digital did a little rule of thumb for 7.5, I guess it still holds true(ish) now - they said: "As a basic rule of thumb, Sitecore calculates diskspace sizing projections using 5KB per ...
Steve Newstead's user avatar
9 votes
Accepted

MongoDB disk IOPS

If your throughput consist out of more than 100.000 writes per second, I would recommend you use an SSD. I think you should not overkill your machine. MongoDB cache will only take up to 10% of your ...
Dilyano Senders's user avatar
9 votes
Accepted

How do I run MongoDB and SOLR Docker images that work with Windows Server 2016?

You mentioned in comments that you're getting an error—this is because there is no tag in my docker hub repository. I wouldn't know which version of Sitecore latest should be build against: 8.2 or 8.1 ...
Thomas Stern's user avatar
9 votes
Accepted

How can I create a custom report in Experience Analytics?

Basically, it is a kind of difficult sometimes to query the MongoDB directly, I had a similar scenario and following what I did: I created aggregation processor that will be called when you rebuild ...
Mohammed Syam's user avatar
8 votes

MongoDB disk IOPS

Here's my understanding (from notes taken during a Mongo engagement a while back): for MongoDB, the more RAM the better. MongoDB performs everything in memory (by default) and flushes it to disk in a ...
G Killian's user avatar
  • 1,299
8 votes
Accepted

What are the best practices for MongoDB replica set latency?

In general, if your data nodes are hosted in different geographical regions, latency between them will be considered high. Write concern High latency will make the replication process slower, which ...
Dmytro Shevchenko's user avatar
8 votes

ERROR: Cannot create tracker (Message:session is not initialized) Sitecore 8.1 update 2

I have experienced both of the errors that you mention in an 8.1.2 instance - sometimes together and other times separately. The below are the most common causes and solutions for these issues, in my ...
Zachary Kniebel's user avatar
7 votes
Accepted

MongoDB and Disaster Recovery

Currently, for enterprise installations of MongoDB, the Sitecore Best Practice for Disaster Recovery of Mongo rests solely on the Best Practices of MongoDB specifically and are not entirely different ...
Pete Navarra's user avatar
  • 14.6k
7 votes

Sitecore MongoDB Compatibility Version

I'll use some common sense from another post that I saw here that was about Sitecore 8.2 does not officially support Windows Server 2016 but is it compatible in reality and will it work in production? ...
Vinicius Deschamps's user avatar
7 votes
Accepted

Setup Mongo DB with Sitecore 9.2

MongoDB is an open-source database management system (DBMS), usually called NoSQL database that uses a document-oriented database model which supports various forms of data. It means you don't need to ...
Mahendra Shekhawat's user avatar
6 votes

Can I use the in-memory storage engine for my MongoDB based sessions?

Yes - there are several advanced ways this can be used - but as I see it the main drawback will be that you expose yourself to a heavy denial of service attack. The in-memory provider will block ...
Klaus Petersen's user avatar
6 votes

What weighs in when migrating lots of external content to MongoDB and/or SOLR?

Personally I've always seen and treated Solr as a transient index, not a persistent storage solution. Whereas MongoDB has always been treated as a storage solution, and not much of an index. But this ...
Laver's user avatar
  • 565
6 votes
Accepted

Where can I find the NuGet package(s) for MongoDB required by Sitecore 8.1 (update 3)

The package was renamed on nuget, what you want is the mongocsharpdriver package. You can get 1.10.0.62 by using: Install-Package mongocsharpdriver -Version 1.10.0 That package contains boths ...
Kasaku's user avatar
  • 4,154
6 votes

MongoDB historical data and data truncation

Grant Killian wrote on his blog about using MongoDB TTL (Time to Live) Indexes to continuously purge xDB data based on an interval. The crux of the post that pertains to this: MongoDB supports “...
Jason St-Cyr's user avatar
  • 6,751
6 votes

How do I get access to my Contact Card information

The issue that you are seeing is because you are trying to instantiate a new ContactRepository(). The appropriate way to reference the repository is by creating the object through Sitecore's ...
Pete Navarra's user avatar
  • 14.6k
6 votes
Accepted

How to Join MongoDb Collections Using Sitecore Mongo Db Report Data Source

You can access MongoDB directly through the C# driver: string connectionString = ConfigurationManager.ConnectionStrings["analytics"].ConnectionString; var client = new MongoDB.Driver.MongoClient(...
Dmytro Shevchenko's user avatar
5 votes

What happens if i remove Mongo server from a Sitecore 8 site

Yes, you can disable xDB. You need to add a patch file Xdb.Enabled and Xdb.Tracking.Enabled set to false: <setting name="Xdb.Enabled"> <patch:attribute name="value">false</patch:...
Marek Musielak's user avatar
  • 23.1k
5 votes
Accepted

Contact (guid) could not be locked in the xDB

I have solved this issue. It was due to following the recommended enable/disable configuration guide (https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/...
Kam Figy's user avatar
  • 4,123

Only top scored, non community-wiki answers of a minimum length are eligible