Original MongoDB C + + driver partial problem solution (MongoDB C + + Driver)

Source: Internet
Author: User

This article gives me some problems and solutions for developing and modifying MongoDB C + + driver for a long time.
At present, the related engines introduced in this article have also released the closed source version, please download it yourself

Library version and related location: http://code.google.com/p/mongodb-cpp-engine/

Q & A
1. C + + version driver do we need a separate package?
A: Not necessarily to do this kind of behavior, but if we increase and use a connection pool its stability will be far better than we think.

2, the C + + version of the driver in addition to the official version, what version is there?
A: currently unknown, but I have completed a thread-safe version of: http://code.google.com/p/mongodb-cpp-engine/

3. What if the official C + + driver for MongoDB is used in multi-threading? Is it thread-safe?
A: There will be a lot of data confusion and the problem caused by the scramble for resources, such as recv when the packet is too large and other anomalies.
It is also clear that this version of the library is non-thread-safe and should be used with special care.

4. Does MongoDB need to process data asynchronously when server-side development?
A: Not required for the time being, according to my other article, data that is basically within 1 million does not require special processing and performance does not degrade.

There are other questions welcome to add

Collected in 2012-06-20

Original MongoDB C + + driver partial problem solution (MongoDB C + + Driver)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.