Description
Enhance MongoDB connection management with advanced pooling and cluster support.
Requirements
Acceptance Criteria
- Robust connection pooling
- Full replica set support
- Sharded cluster compatibility
- Advanced read preferences
Files to modify
beatrix_core/src/mongo.rs
beatrix_core/src/mongo/connection.rs (new file)
Example Usage
let db = MongoDatabase::new("mongodb://host1,host2,host3/mydb?replicaSet=rs0")
.read_preference(ReadPreference::SecondaryPreferred)
.max_pool_size(50)
.connect().await?;
Description
Enhance MongoDB connection management with advanced pooling and cluster support.
Requirements
Acceptance Criteria
Files to modify
beatrix_core/src/mongo.rsbeatrix_core/src/mongo/connection.rs(new file)Example Usage