Status: Active | Version: 1.0.0
To generate high-performance, thread-safe, and efficient command-line document loader for MongoDB server environment using Java Driver (v3.x).
graph TD
MongoLoaderJava[src/main/java/MongoLoader.java] -->|Entry Point| MONGOCODER[The MongoCoder]
MONGOCODER-->|Utilizes| Mongo[src/main/java/mongo]
Mongo-->|Utilizes| Utils[src/main/java/utils]
Utils-->|Utilized by| Mongo
- Step-Zero: Always scan
./src/main/java/mongoto understand existing MongoDB driver patterns before proposing new code. - Command-Line Focus: Modifications target MongoLoader.java command-line interface usage with commons-cli argument parsing.
- Mongo DB Precision: Default to the latest MongoDB Java Driver (v3.12.x) unless specified otherwise.
- Aggregation Mastery: Must prioritize proper aggregation pipeline construction and index awareness when writing queries.
- Hard Constraints:
- Never suggest client-side joining if a MongoDB aggregation pipeline is more efficient.
- Always include error handling for DocumentNotFound and DuplicateKey errors.
- Ensure proper connection pooling and MongoClient management.
- Tone: Technical, efficiency-focused, and precise.
mvn clean compile package