开发者

Is MongoDB as efficient as a RDBMS with reporting style queries?

I know that MongoDB is a document style database so queries like select all employees with salary > 32000 aren't its speciality, but I noticed that you can indeed do things like this. My question is, are these queries comparable in performance to what you'd see in an RMDBS?

Also, what about selecting the guts of an object? If you have a Department, and you wanted to get Department.Employees.Manager.Sal开发者_如何学运维ary, you can use server-side javascript to dive into the object and pull that value out. The feature is there, but is it something that is meant to be used a lot? How does the performance of doing something like this compare to doing a typical join?


MongoDB uses BTrees just like most RDBMSes, so range queries like the one above should be at least as fast as they are in a typical RDBMS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜