Skip to content

Add an optional table of contents for multi-chunk WCON files #163

@MichaelCurrie

Description

@MichaelCurrie

Say there is a WCON spread across 500 files ("chunks"). Going to timestamp X will require opening all these chunks unless there is a table of contents telling the reader which chunk to visit.

This table of contents should be auto-generated by the WCON writer, and reference what times and worms are stored in each of the other file "chunks". It will be optionally used by a WCON reader to open only the necessary chunk when doing random access of certain timestamps.

To retain backward compatibility it could be a top-level object called "@tableofcontents". Or perhaps it could be a change to the top-level "files" object, adding hash and data range info to each file entry.

Implementations using this should probably put the "@TableofContents", "units", and "metadata" objects, and an empty "data" object, in the first chunk, and the real data objects starting from the second chunk, to ensure efficient loading of only the data required.

@vivekv2 may have an example of a table of contents in action.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions