开发者

What is the performance impact of using Casbah as opposed to directly using MongoDb java driver?

Casbah is another layer on top of Java driver for MongoDb. Would this reduce performance of queries and updates in MongoDb database in scala projects when using Casbah as 开发者_运维百科opposed to directly using the Java driver?


(I'm the author and maintainer of Casbah)

It should be negligible - I have worked hard over the last 2 years to keep the thickness of any wrapping to the bare minimum.

I'd venture to guess that most users will never begin to experience ANY kind of noticable pain or slowdown as a result of Casbah's wrapper code over using the straight Java driver.

In many cases because of optimisations Scala is able to make at compile time, I have also observed places where Casbah performs flat out better (especially for iteration type operations) than the Java driver alone.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜