As an administrator, we need to obtain the memory size of the message sent each time a user makes a modification during co-editing, as a performance comparison with traditional non-collaborative software. Can you provide a method for me to obtain the size of the modified content transmitted each time a modification is made?
Hello @yingshe
Depending on what exactly you are looking for, I can suggest following:
- If you are looking forward to check the length of the whole request that transfers changes to DocService, then you should check out websocket messages. Press F12 to open devtools of your browser, reload the page, in Network tab find element that starts with
c/?shardkey
, check messages that are going back and forth for it. Among many other statuses you can find the one with"type":"saveChanges"
and in length column you will get the length of this mssage. - If you want to know how many characters were added when sending changes to DocService, then you will need to enable debug level logging (please refer, for instance, to this comment), then in the DocService log look for messages with
[INFO]
status like this one:
[2025-04-21T08:58:16.910] [INFO] [localhost] [document.key] [UID] nodeJS - saveChanges: deleteIndex: 4 ; startIndex: 4 ; length: 7
length
here defines the size of performed change in characters.