File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ func (cgt *Transaction) Commit() error {
113
113
assetRemovalsChunks := utils .ChunkSlice (bulk .GetAssetRemovals (), chunkSize ).([][]interface {})
114
114
assetInsertionChunks := utils .ChunkSlice (bulk .GetAssetUpserts (), chunkSize ).([][]interface {})
115
115
116
+ now := time .Now ()
117
+
116
118
for _ , rels := range relationRemovalsChunks {
117
119
relations := []knowledge.Relation {}
118
120
for _ , r := range rels {
@@ -193,7 +195,9 @@ func (cgt *Transaction) Commit() error {
193
195
}
194
196
}
195
197
196
- logrus .Debug ("Finished uploading the graph..." )
198
+ elapsed := time .Since (now )
199
+
200
+ logrus .Debugf ("Finished uploading the graph in %f seconds..." , elapsed .Seconds ())
197
201
198
202
cgt .onSuccess (cgt .newGraph )
199
203
cgt .newGraph = knowledge .NewGraph ()
You can’t perform that action at this time.
0 commit comments