[CXX-1532] Demonstrate "pool" in thread-safety.md Created: 21/Mar/18 Updated: 28/Oct/23 Resolved: 03/Jul/18 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Spencer Mckenney |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In thread-safety.md the final section, "The best version," isn't really the best example of multi-threaded code using the driver. The example creates two distinct clients for two threads. Instead, we should demonstrate the use of mongocxx::pool. |
| Comments |
| Comment by Githook User [ 03/Jul/18 ] |
|
Author: {'username': 'spencemc', 'name': 'Spencer McKenney', 'email': 'spencermck@me.com'}Message: |
| Comment by Kevin Albertson [ 06/May/18 ] |
|
I would also consider keeping that example as a "Don't do this" example. Each individual client will have it's own topology and topology scanner in that case, doing twice the work. |