Skip to content

Commit dfb52b0

Browse files
committed
Added text for data loading
1 parent 5810be8 commit dfb52b0

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

06_Load_Data/README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
# Add document collection to MongoDB and load data (console app)
2-
3-
- Manually load data and ask questions about it
4-
- Run data generator to load sample data
5-
- We need to find a good data set
6-
7-
Included in 05_Create_First_Cosmos_DB_Project
8-
NEEDS:
9-
- What is our scenario/story?
10-
- data generator/kaggle ? Existing dataset?
11-
- raw format storage (csv, json, etc.)
12-
- develop data loader (raw to db)
1+
# Load data into Azure Cosmos DB API for MongoDB
2+
3+
Lab 1 demonstrated how to individually add data to a collection. This lab will demonstrate how to load data using bulk operations into multiple collections. This data will be used in subsequent labs to further demonstrate the capabilities of Azure Cosmos DB API for MongoDB in relation to AI.
4+
5+
When loading data, bulk operations are preferred over adding each document individually. Bulk operations involve performing multiple database operations together as a batch, rather than executing them one at a time. This approach is more efficient and provides several benefits:
6+
7+
1. Performance: By issuing load operations in bulk, the lab can significantly reduce the overhead of network round-trips and database operations. This results in faster data loading and improved overall performance.
8+
9+
2. Scalability: Bulk operations allow the lab to handle large volumes of data efficiently. They can process and load a substantial amount of customer, product, and sales data in a shorter amount of time, enabling them to scale their operations as needed.
10+
11+
3. Atomicity: Bulk operations ensure that all database changes within a batch are treated as a single transaction. If any individual document fails to load, the entire batch can be rolled back, maintaining data integrity and consistency.
12+
13+
4. Simplified code logic: By using bulk operations, the lab can simplify their code logic and reduce the number of database queries. This results in cleaner, more manageable code and reduces the likelihood of errors or inconsistencies.
14+
15+
## Lab 3 - Load data into Azure Cosmos DB API for MongoDB collections
16+
17+
This lab will load the Cosmic Works Customer, Product, and Sales data into Azure Cosmos DB API for MongoDB collections using bulk operations.
18+
19+
Please complete Lab 3 in the lab repository.

0 commit comments

Comments
 (0)