FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Explicitly reuse summary objects

Open arinwt opened this issue 6 years ago • 0 comments

It would be useful to support summary handles in the custom snapshot functions at the DDS level. This would allow summarization to reference blobs/trees without downloading them.

Blobs

Currently we return ITree from snapshot, which has type IBlob for blobs. This only allows for uploading the entire blob contents again, which then the storage/driver may try to reuse. If the DDS explicitly wants to reuse a blob without downloading it, it should have a way to reference the previous one.

I'd expect these to eventually become ISummaryHandle with handleType: SummaryType.Blob. There isn't currently an ITree equivalent of this.

Trees

Currently we can add a non-null id to the ITree to indicate that it should be reused. But this value is expected to be the full path to the previous node. The full path is difficult/impossible to know at the DDS level, because the parent paths may change. It might be good to support relative paths here such as "." or "../abc". We could also use relative paths to prevent referencing things out of scope.

arinwt avatar May 04 '20 21:05 arinwt