[SERVER-69719] Shorten the global index crud oplog entries Created: 15/Sep/22  Updated: 29/Oct/23  Resolved: 28/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Josef Ahmad Assignee: Josef Ahmad
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-10-03
Participants:

 Description   

Make the op:'xi' and op:'xd' entries more compact. Current format:

{
  "op" : "xi",
  "ns" : "system.$cmd",
  "ui" : UUID("06f31379-e2a4-45c8-a7de-15259abff790"),
    "o" : {
      "key" : { "a" : "myIndexKeyValue" },
      "docKey" : { "sk" : myShardKeyVal, "_id" : myIdVal }
     }	
}

Consider renaming the 'key' field to 'ik' and the 'docKey' field to 'dk'.
Explore the possibility of removing the 'ns' field.



 Comments   
Comment by Githook User [ 27/Sep/22 ]

Author:

{'name': 'Josef Ahmad', 'email': 'josef.ahmad@mongodb.com', 'username': 'josefahmad'}

Message: SERVER-69719 Shorten the global index crud oplog entries
Branch: master
https://github.com/mongodb/mongo/commit/a9d6de1242318413f29ccb2b233fd7885af4d083

Comment by Josef Ahmad [ 26/Sep/22 ]

"ns" is specified as a mandatory oplog entry field. We'll revisit lifting the "ns" requirement on global indexes oplog entries only if future perf tests suggest so.

Generated at Thu Feb 08 06:14:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.