openwhisk-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [openwhisk] tysonnorris commented on a change in pull request #4652: Capture document size, RU usage, retry stats for get and put in CosmosDB
Date Mon, 30 Sep 2019 17:02:17 GMT
tysonnorris commented on a change in pull request #4652: Capture document size, RU usage, retry
stats for get and put in CosmosDB
URL: https://github.com/apache/openwhisk/pull/4652#discussion_r329686031
 
 

 ##########
 File path: common/scala/src/main/scala/org/apache/openwhisk/core/database/cosmosdb/CosmosDBArtifactStore.scala
 ##########
 @@ -476,10 +488,11 @@ class CosmosDBArtifactStore[DocumentAbstraction <: DocumentSerializer](protected
         (clusterId, clusterIdValue))
     val fieldsToRemove = Seq(_id, _rev)
     val mapped = transform(json, fieldsToAdd, fieldsToRemove)
+    val jsonString = mapped.compactPrint
     val doc = new Document(mapped.compactPrint)
 
 Review comment:
   maybe should avoid calling `mapped.compactPrint` twice? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message