johnlemon
johnlemon

Reputation: 21449

Is there a big speed difference between Mongo and Mysql(MyIsam)?

Giving the following situation:

--

Upvotes: 3

Views: 1114

Answers (1)

Craig Trombly
Craig Trombly

Reputation: 464

Assuming that you are running benchmarks on the same kind of operating system, everything will come down to your data structure. For instance, in both Mongo & Mysql, you have indexes, but if you do not use an index, mysql will beat mongo, if you index mongo properly, they would be close. Mongo is better for unstructured data, where Mysql is better for structured and will typically out perform an unstructured/NoSQL type data store. DML (updates/inserts/deletes) may be faster by index with Mysql depending upon good data design.

Advantages are based on the architecture. For instance Mysql is traditional row based transaction type (OLTP). Mongo is a for unstructured data, No schema is necessary. Usually systems like this use key/value pairs to identify their objects which gives speedy access to the data on disk.

Upvotes: 2

Related Questions