Key differences between SQL Server and MongoDB:

 

FeatureSQL ServerMongoDB
Database ModelRelationalDocument-oriented
Query LanguageSQLMongoDB Query Language (MQL)
TransactionsACID-compliantACID-compliant with distributed transactions
ScalabilityVertical and Horizontal scalingHorizontal scaling only
SchemaSchema-basedSchema-free
IndexingB-tree and Hash indexingMultikey indexing and Geospatial indexing
ReplicationMaster-Slave and Peer-to-PeerMaster-Slave and Replica Sets
BackupsFull, Differential, and Log backupPoint-in-Time backup and Filesystem backup
JoinsSupportedNot supported
Data TypesFixed and VariableDynamic
AggregationSupportedNative and Map-Reduce Aggregation
Note that this is not an exhaustive list and there may be other differences or nuances to consider when choosing between SQL Server and MongoDB.

Comments

Popular posts from this blog

Interview Questions on AOAG

Database Administrator Designations

Interview questions for Junior SQL server DBA.