fdb-document-layer icon indicating copy to clipboard operation
fdb-document-layer copied to clipboard

Pass around IndexInfo instead of bson::BSONObj

Open apkar opened this issue 5 years ago • 1 comments

In the code, we pass around index information a lot, especially in the metadata handling code. The code would look much cleaner if we are passing around IndexInfo instead of bson::BSONObj. That would avoid serialization/deserialization lots of different places uses CPP typing instead of BSON type checks.

apkar avatar Apr 04 '19 20:04 apkar

We probably want to expand this to profile first and then audit the serialization and deserialization code in general in doc layer.

dongxinEric avatar Apr 04 '19 23:04 dongxinEric