2015年6月2日 星期二

MemSQL vs. MongoDB

MemSQL MongoDB
CategoryDatabaseDatabase, Data Storage
Preference75% votesvotes25% votesvotes
Websitewww.​memsql.​comwww.​mongodb.​org
LicenseProprietaryAGPLv3
Design
Database modelRelational, Distributed data structureDocument-oriented, Schema-less, NoSQL
Data storageVolatile memory, File SystemVolatile memory, File System
EmbeddableYesYes
Features
Query languageSQLAPI calls, JavaScript, REST
Data typesAll MySQL, JSON, BLOBJSON
Conditional entry updatesYesYes
Map and reduceYesYes
UnicodeYesYes
TTL for entriesNoYes
CompressionYesYes
Integrity
Integrity modelACID, MVCCBASE
AtomicityYesConditional
ConsistencyYesYes
IsolationYesYes
Durability (data storage)YesYes
TransactionsYesNo
Referential integrityYesNo
Revision controlYesNo
Locking modelLock Free Model, MVCCOptimistic Locking, Lock on write
Indexing
Secondary IndexesYesYes
Composite keysYesYes
Full text searchNoYes
Geospatial IndexesYesYes
Graph supportNoNo
Graph typeOriented graph?
Distribution
Horizontal scalableYesYes
ReplicationYesYes
Replication modeMaster-Slave ReplicationMaster-Slave-Replica Replication
ShardingYesYes
Shared nothing architectureYesYes
Restrictions
Value size max.1 000 EB16 MB
System requirements
Operating systemLinux, Amazon EC2Linux, Windows, Mac OS X
Native driverC, C++, php, Java, Python, Objective-C, Ruby, GoJava, php, Ruby, C#, Python, JavaScript, Haskell, Perl, C++, Erlang, Scala, C, Go
Memory recommended8 GB?
Memory minimum8 GB?
Architecture
Programming languageC++C++
More
DescriptionIn-Memory Database used for real-time analytics.Document Oriented Database
Multi-user systemYesYes
Accelerometer sensorNo?
Price rating●●●○○●●●●●
Software distributionPackage management systemTarball, Ubuntu Software Center, Package management system, Windows Installer
Object-Relational Mapping (ORM)YesYes
Release Date18ᵗʰ June 2012March 2009
Documentation level●●●●○●●●●●
Distributed CounterYes?
Free to useYesYes
ActiveYesYes
Database Connection PoolingYesYes
Real time analyticsYesYes
2 Letter Country CodeUS?
Cloud platform supportAmazon EC2Heroku, CloudBee, Bluemix, Amazon EC2, SoftLayer
Online backupYesYes
Function Based IndexYesNo
LogYesYes
Downloadwww.​memsql.​com/​#downloadmongodb.​org/​downloads
Backup functionalityGoodGood
Query CacheYesYes
Ease of use●●●●○●●●●●
Free for commercial useNoYes
SortsYesYes
Perfomance●●●●○●●●●○
Materialized ViewsNoNo
Spring Data SupportYesYes
JSONYesYes
Stored ProcedureNoYes
ConcurrencyYes?
Multi-statement TransactionsYesYes
ColumnerYes?
Brand?MongoDB Inc
Extension/Plug-in?Yes
Database?MongoDB
Standard compliance?No
RESTful?Conditional
Lines of code?617 k
Community Driven?Good
Web interface?Yes
Data encryption?Conditional
Admin Generator?Yes
Partial Index?No
Key length max?128
Implementation flexibility(0% global votes)(48% global votes)
In-Place Update?Yes
Capped Collections?Yes
Tuneable write concerns?Yes
Read preferences?Yes
Open Source?Yes
Op/s?5 000
Triggers?No
Pause Test?Yes
Cross Domain Testing?No
Pipeline Aggregation?Yes
Geospatial?Yes
Server Side Java Script?Yes
Flexible Table(Schema)?Yes
Geo-distributed?Yes
Max rows in query result?1 000
Re-Reduce?Yes
Clustering over WAN?Yes
Fully Distributed?Yes
Auto-Sharding?Yes
memcached protocol?No
Monitoring UI?Yes
Recursive queries?No
Network datatype?No
Windowed aggregate?No
CLI`?Yes
This table is based on the vsChart comparison MemSQL vs. MongoDB comparison | vsChart.com, which is released under the Creative Commons Attribution-Share-Alike License 3.0.