Skip to content

Commit 0fefc30

Browse files
committed
quick fixes
1 parent 50eff20 commit 0fefc30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/cosmos-db/graph/bulk-executor-graph-dotnet.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ ms.devlang: csharp, java
1616

1717
Graph database often has a use case to perform bulk ingestion to refresh the entire graph or update a portion of it. Cosmos DB, which is a distributed database and backbone of Azure Cosmos DB - Gremlin API, is meant to perform if the load is well distributed. BulkExecutor libraries in Cosmos DB designed to exploit this unique capability of Cosmos DB and provide the best performance, refer [here](https://devblogs.microsoft.com/cosmosdb/introducing-bulk-support-in-the-net-sdk).
1818

19-
This tutorial provides instructions about using Azure Cosmos DB's bulk executor library to import and update graph objects into an Azure Cosmos DB Gremlin API container. This process makes use to create Vertex and Microsoft Edge objects programmatically to then insert multiple of them per network request.
19+
This tutorial provides instructions about using Azure Cosmos DB's bulk executor library to import and update graph objects into an Azure Cosmos DB Gremlin API container. This process makes use to create Vertex and Edge objects programmatically to then insert multiple of them per network request.
2020

21-
Instead of sending Gremlin queries to a database, where the command is evaluated and then executed one at a time, using the bulkexecutor library will require to create and validate the objects locally. After initializing, the graph objects, the library allows you to send graph objects to the database service sequentially. Using this method, data ingestion speeds can be increased up to 100x, which makes it an ideal method for initial data migrations or periodical data movement operations.
21+
Instead of sending Gremlin queries to a database, where the command is evaluated and then executed one at a time, using the BulkExecutor library will require to create and validate the objects locally. After initializing, the graph objects, the library allows you to send graph objects to the database service sequentially. Using this method, data ingestion speeds can be increased up to 100x, which makes it an ideal method for initial data migrations or periodical data movement operations.
2222

2323
It's now available in following flavors:
2424

@@ -84,16 +84,16 @@ private static void executeWithPOJO(Stream<GremlinVertex> vertices,
8484
loader.uploadDocuments(vertices, edges, createDocs);
8585
}
8686
```
87-
### Run
88-
#### Clone
87+
88+
### Clone
8989
To run the sample, run the `git clone` command below:
9090
```bash
9191
git clone https://github.com/Azure-Samples/azure-cosmos-graph-bulk-executor.git
9292
```
9393
The sample is available at .\azure-cosmos-graph-bulk-executor\java\
9494

9595
To run the sample, refer the configuration as follows and modify as needed:
96-
##### Configuration
96+
### Configuration
9797

9898
The /resources/application.properties file defines the data required to configure the Cosmos DB the required values are:
9999

@@ -104,7 +104,7 @@ The /resources/application.properties file defines the data required to configur
104104
* **sample.sql.partition.path**: If the container needs to be created, this value will be used to define the partitionKey path.
105105
* **sample.sql.allow.throughput**: The container will be updated to use the throughput value defined here. If you're exploring different throughput options to meet your performance demands, make sure to reset the throughput on the container when done with your exploration. There are costs associated with leaving the container provisioned with a higher throughput.
106106

107-
#### Execute the sample
107+
### Execute the sample
108108

109109
Once the configuration is modified as per your environment, then run the command:
110110

@@ -123,7 +123,7 @@ java -jar target/azure-cosmos-graph-bulk-executor-1.0-jar-with-dependencies.jar
123123

124124
Running the above commands will execute the sample with a small batch (1k Vertices and roughly 5k Edges). Use the following command lines arguments to tweak the volumes run and which sample version to run.
125125

126-
#### Command line Arguments
126+
### Command line Arguments
127127

128128
There are several command line arguments are available while running this sample, which is detailed as:
129129

@@ -145,7 +145,7 @@ transformation into the GremlinVertex class. They are as follows:
145145
* **GremlinPartitionKey**: Is being used to define which field on the class contains the partition key. The field name provided here should match the value defined by the partition path on the container.
146146
* **GremlinIgnore**: Is being used to exclude the isSpecial field from the property being written to the database.
147147

148-
#### Relationship Microsoft Edge
148+
#### Relationship Edge
149149

150150
The RelationshipEdge is a fairly versatile domain object. Using the field level label annotation allows for a dynamic
151151
collection of edge types to be created. The following annotations are represented in this sample domain edge:

0 commit comments

Comments
 (0)